<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linuc Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/linuc/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 28 Dec 2018 18:58:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Glances on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-glances-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-glances-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 28 Dec 2018 18:58:21 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linuc]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[monitoring tools]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8763</guid>

					<description><![CDATA[<p>We already know that monitoring your server is something basic like sysadmin. But it is not only limited to those professionals in server administration but we can do it ourselves. For it, they count on diverse light tools and open source that, they help us with it. In addition, we like monitoring because it helps [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-glances-centos-7/">How to install Glances on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We already know that monitoring your server is something basic like sysadmin. But it is not only limited to those professionals in server administration but we can do it ourselves. For it, they count on diverse light tools and open source that, they help us with it. In addition, we like monitoring because it helps to be attentive to any eventuality that arises in the computer. So, that&#8217;s why today I&#8217;ll show you how to install Glances on <a href="https://www.osradar.com/how-to-install-nodejs-on-centos-7/">CentOS</a> 7.</p>
<p>Glances is a cross-platform system monitoring tool written in Python. Glances helps us keep an eye on our system, just the <a href="https://nicolargo.github.io/glances/" rel="noopener">website</a> project says.</p>
<p>Among its main features, we have that it is possible to choose to display system information on the terminal or remotely through a web interface. It also has an API that allows third-party applications to use Glances.</p>
<p>Some of the parameters that Glance allows you to monitor are there:</p>
<ul>
<li>CPU.</li>
<li>Memory.</li>
<li>Load.</li>
<li>Process list.</li>
<li>Network interface.</li>
<li>Disk I/O.</li>
<li>IRQ / Raid.</li>
<li>Sensors.</li>
<li>Filesystem (and folders).</li>
<li>Docker.</li>
</ul>
<p>As you can see, the information you can get by using it is varied. So, let&#8217;s install Glances.</p>
<h1>1. Check the Python version</h1>
<p>In this first step, you must verify which version of python your CentOS 7 system has. This is because Glances requires at least Python 2.7 or Python 3.4. So run this command:</p>
<pre class="">:~$ su
:~# python -version</pre>
<figure id="attachment_8764" aria-describedby="caption-attachment-8764" style="width: 837px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8764" src="https://www.osradar.com/wp-content/uploads/2018/12/1-19.png" alt="1.- Check the python version" width="837" height="137" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-19.png 837w, https://www.osradar.com/wp-content/uploads/2018/12/1-19-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-19-768x126.png 768w" sizes="(max-width: 837px) 100vw, 837px" /><figcaption id="caption-attachment-8764" class="wp-caption-text">1.- Check the python version</figcaption></figure>
<p>At the moment I&#8217;m using CentOS 7 and I&#8217;ve always updated it. However, in case you don&#8217;t have a valid version of python, you can use <a href="https://www.osradar.com/get-the-latest-python-on-linux/" rel="noopener">this</a> tutorial.</p>
<p>So, let&#8217;s continue.</p>
<h1>2. Install Glances on CentOS 7</h1>
<p>Now it&#8217;s the turn to install Glances. We have several ways to do this. Both are very easy so I&#8217;ll tell you how it is.</p>
<p>The first way to install Glances is to do it through the auto install script. To do this, you can use <a href="https://www.osradar.com/how-to-use-curl-command-linux/" rel="noopener">CURL</a> or <em>wget</em> to download the script and run it with bash.</p>
<pre class="">:~# curl -L https://bit.ly/glances | /bin/bash</pre>
<p>or</p>
<pre class="">:~# wget -O- https://bit.ly/glances | /bin/bash</pre>
<p>It&#8217;s really simple and this method guarantees you to have the last version ready for production, i.e. the master branch.</p>
<p>However, we are using CentOS 7 and that means stability, right? then we are going to install the latest stable version of Glances and for that, I will use pip.</p>
<pre class="">:~# yum install python-devel</pre>
<figure id="attachment_8765" aria-describedby="caption-attachment-8765" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8765" src="https://www.osradar.com/wp-content/uploads/2018/12/2-18.png" alt="2.- Installing some required packages" width="1365" height="563" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-18.png 1365w, https://www.osradar.com/wp-content/uploads/2018/12/2-18-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-18-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-18-1024x422.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-18-1068x441.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-18-1018x420.png 1018w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8765" class="wp-caption-text">2.- Installing some required packages</figcaption></figure>
<p>Then, install pip from the EPEL repository.</p>
<pre class="">:~# yum install epel-release</pre>
<figure id="attachment_8766" aria-describedby="caption-attachment-8766" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8766" src="https://www.osradar.com/wp-content/uploads/2018/12/3-18.png" alt="3.- Enabling the EPEL repository" width="1365" height="561" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-18.png 1365w, https://www.osradar.com/wp-content/uploads/2018/12/3-18-300x123.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-18-768x316.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-18-1024x421.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-18-1068x439.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-18-1022x420.png 1022w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-8766" class="wp-caption-text">3.- Enabling the EPEL repository</figcaption></figure>
<p>Now, install pip.</p>
<figure id="attachment_8767" aria-describedby="caption-attachment-8767" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8767" src="https://www.osradar.com/wp-content/uploads/2018/12/4-18.png" alt="4.- Install python-pip" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-18.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/4-18-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-18-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/4-18-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/4-18-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/4-18-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8767" class="wp-caption-text">4.- Install python-pip</figcaption></figure>
<p>Now, upgrade pip.</p>
<pre class="">:~# pip install --upgrade pip</pre>
<p>When the installation is finished, it is necessary to install gcc.</p>
<pre class="">:~# yum install gcc</pre>
<figure id="attachment_8768" aria-describedby="caption-attachment-8768" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8768" src="https://www.osradar.com/wp-content/uploads/2018/12/5-16.png" alt="5.- install gcc" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/5-16.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/5-16-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/5-16-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/5-16-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/5-16-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/5-16-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8768" class="wp-caption-text">5.- install gcc</figcaption></figure>
<p>Next, install <em>psutil</em> using pip.</p>
<pre class="">:~# pip install psutil</pre>
<figure id="attachment_8770" aria-describedby="caption-attachment-8770" style="width: 1362px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8770" src="https://www.osradar.com/wp-content/uploads/2018/12/6-653.png" alt="6.- Install psutil" width="1362" height="208" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-653.png 1362w, https://www.osradar.com/wp-content/uploads/2018/12/6-653-300x46.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-653-768x117.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/6-653-1024x156.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/6-653-1068x163.png 1068w" sizes="(max-width: 1362px) 100vw, 1362px" /><figcaption id="caption-attachment-8770" class="wp-caption-text">6.- Install psutil</figcaption></figure>
<p>Finally, install glances.</p>
<pre class="">:~# pip installa glances</pre>
<figure id="attachment_8771" aria-describedby="caption-attachment-8771" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8771" src="https://www.osradar.com/wp-content/uploads/2018/12/7-7777.png" alt="7.- Install glances using pip" width="1364" height="256" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-7777.png 1364w, https://www.osradar.com/wp-content/uploads/2018/12/7-7777-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-7777-768x144.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/7-7777-1024x192.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/7-7777-1068x200.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-8771" class="wp-caption-text">7.- Install glances using pip</figcaption></figure>
<p>If you want to use additional libraries to enable other features of glans, you can use this command as well.</p>
<pre class="">:~# pip install glances[action,browser,cloud,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]</pre>
<figure id="attachment_8772" aria-describedby="caption-attachment-8772" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8772" src="https://www.osradar.com/wp-content/uploads/2018/12/8-9888.png" alt="8.- Installing other packages" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/8-9888.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/8-9888-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/8-9888-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/8-9888-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/8-9888-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/8-9888-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8772" class="wp-caption-text">8.- Installing other packages</figcaption></figure>
<p>And that&#8217;s it.</p>
<h1>3. Using Glances</h1>
<p>Now let&#8217;s use it. Execute the command <code>glances</code> to initialize the monitoring locally.</p>
<pre class="">:~# glances</pre>
<figure id="attachment_8773" aria-describedby="caption-attachment-8773" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8773" src="https://www.osradar.com/wp-content/uploads/2018/12/9-9999932.png" alt="9.- Glances" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/9-9999932.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/9-9999932-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/9-9999932-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/9-9999932-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/9-9999932-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/9-9999932-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8773" class="wp-caption-text">9.- Glances</figcaption></figure>
<p>If you are running glances in a server, you can run.</p>
<pre class="">:~# glances -s</pre>
<p>&nbsp;</p>
<figure id="attachment_8774" aria-describedby="caption-attachment-8774" style="width: 858px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8774" src="https://www.osradar.com/wp-content/uploads/2018/12/10-11444.png" alt="10.- Running glances in a server mode" width="858" height="161" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-11444.png 858w, https://www.osradar.com/wp-content/uploads/2018/12/10-11444-300x56.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/10-11444-768x144.png 768w" sizes="(max-width: 858px) 100vw, 858px" /><figcaption id="caption-attachment-8774" class="wp-caption-text">10.- Running glances in a server modeReplace IP for the server IP.</figcaption></figure>
<p>In the client machine, just run.</p>
<p>&nbsp;</p>
<pre class="">:~# glances -c IP</pre>
<p>Finally, if you nat to use the web interface run on the server.</p>
<pre class="">:~# glances -w</pre>
<figure id="attachment_8775" aria-describedby="caption-attachment-8775" style="width: 643px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8775" src="https://www.osradar.com/wp-content/uploads/2018/12/11-112323.png" alt="11.- Running Glances to allow web interface" width="643" height="206" srcset="https://www.osradar.com/wp-content/uploads/2018/12/11-112323.png 643w, https://www.osradar.com/wp-content/uploads/2018/12/11-112323-300x96.png 300w" sizes="(max-width: 643px) 100vw, 643px" /><figcaption id="caption-attachment-8775" class="wp-caption-text">11.- Running Glances to allow web interface</figcaption></figure>
<p>On the client machine, open the web browser and go to http://IP_SERVER:61208.</p>
<figure id="attachment_8776" aria-describedby="caption-attachment-8776" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8776" src="https://www.osradar.com/wp-content/uploads/2018/12/12-1222222.png" alt="12.- Glances in a web browser" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/12-1222222.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/12-1222222-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8776" class="wp-caption-text">12.- Glances in a web browser</figcaption></figure>
<p>Of course, don&#8217;t forget to add the rules to the firewall to open the glances port.</p>
<pre class="">:~# firewall-cmd --zone=public --add-port=61208/tcp --permanent
:~# firewall-cmd --reload</pre>
<figure id="attachment_8777" aria-describedby="caption-attachment-8777" style="width: 845px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8777" src="https://www.osradar.com/wp-content/uploads/2018/12/13-3333.png" alt="13.- Open the glances port" width="845" height="151" srcset="https://www.osradar.com/wp-content/uploads/2018/12/13-3333.png 845w, https://www.osradar.com/wp-content/uploads/2018/12/13-3333-300x54.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/13-3333-768x137.png 768w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption id="caption-attachment-8777" class="wp-caption-text">13.- Open the glances port</figcaption></figure>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>Glances is a pretty good tool to monitor your CentOS 7 server. It is built in Python and its memory consumption is quite efficient. Its installation in CentOS is something simple for a user accustomed to terminal commands.</p>
<p>Please share this article in your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-glances-centos-7/">How to install Glances on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-glances-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
