centos/ubuntu下安装glances监控软件

如果你想通过一个工具来监控真个linux系统的使用情况,比如cpu, 磁盘iO,网络使用情况,内存使用情况以及其它的。那么可以尝试使用glances工具来监控系统。

CentOS/RHEL 下安装glances工具

使用yum命令来安装glances,输入下面的命令:
[cc lang=”bash”]
yum -y install glances
[/cc]
命令输出:
[cc lang=”bash”]
yum install glances
Loaded plugins: product-id, protectbase, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
rhel-x86_64-server-6 | 1.5 kB 00:00
rhel-x86_64-server-optional-6 | 1.5 kB 00:00
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package glances.noarch 0:1.7.1-1.el6 will be installed
–> Processing Dependency: python-psutil >= 0.4.1 for package: glances-1.7.1-1.el6.noarch
–> Processing Dependency: python-setuptools for package: glances-1.7.1-1.el6.noarch
–> Running transaction check
—> Package python-psutil.x86_64 0:0.6.1-1.el6 will be installed
—> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
============================================================================
Package Arch Version Repository Size
============================================================================
Installing:
glances noarch 1.7.1-1.el6 epel 107 k
Installing for dependencies:
python-psutil x86_64 0.6.1-1.el6 epel 84 k
python-setuptools noarch 0.6.10-3.el6 rhel-x86_64-server-6 336 k
Transaction Summary
============================================================================
Install 3 Package(s)
Total download size: 527 k
Installed size: 843 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): glances-1.7.1-1.el6.noarch.rpm | 107 kB 00:00
(2/3): python-psutil-0.6.1-1.el6.x86_64.rpm | 84 kB 00:00
(3/3): python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
—————————————————————————-
Total 1.8 MB/s | 527 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-psutil-0.6.1-1.el6.x86_64 1/3
Installing : python-setuptools-0.6.10-3.el6.noarch 2/3
Installing : glances-1.7.1-1.el6.noarch 3/3
Verifying : python-setuptools-0.6.10-3.el6.noarch 1/3
Verifying : python-psutil-0.6.1-1.el6.x86_64 2/3
Verifying : glances-1.7.1-1.el6.noarch 3/3
Installed:
glances.noarch 0:1.7.1-1.el6
Dependency Installed:
python-psutil.x86_64 0:0.6.1-1.el6
python-setuptools.noarch 0:0.6.10-3.el6
Complete!
[/cc]
[cc lang=”bash”]
Ubuntu/Debian下安装glances工具
[/cc]
输入下面的命令:
[cc lang=”bash”]
sudo apt-get install glances
[/cc]
命令输出:
glances

Leave a Reply