环境:
[ ~]# cat /etc/redhat-release CentOS release 6.6 (Final)[ ~]# uname -r2.6.32-504.el6.x86_64[ ~]# uname -mx86_64
安装epel源
# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# yum install python-pip.noarch -y
# yum install python-devel.x86_64 -y
# yum install python-psutil -y
# yum install python-jinja2.x86_64 -y
# yum install python-pip python-devel -y
安装glances
# yum install –y glances
运行:
# glances
效果如下:
查看帮助信息:
# glances -h
2015-11-20 16:53:58Glances version 1.7.4 with PsUtil 0.6.1Usage: glances [options]Options:-b Display network rate in Byte per second-B @IP|HOST Bind server to the given IPv4/IPv6 address or hostname-c @IP|HOST Connect to a Glances server by IPv4/IPv6 address or hostname-C FILE Path to the configuration file-d Disable disk I/O module-e Enable sensors module-f FILE Set the HTML output folder or CSV file-h Display the help and exit-m Disable mount module-n Disable network module-o OUTPUT Define additional output (available: HTML or CSV)-p PORT Define the client/server TCP port (default: 61209)-P PASSWORD Define a client/server password--password Define a client/server password from the prompt-r Disable process list-s Run Glances in server mode-t SECONDS Set refresh time in seconds (default: 3 sec)-v Display the version and exit-y Enable hddtemp module-z Do not use the bold color attribute-1 Start Glances in per CPU mode
Linux运维的自我修养-ywliyq
技术交流,请加QQ群:256172681
给我写信:ywliyq@163.com
我的技术博客:http://ywliyq.blog.51cto.com/