环境:
[root@vsftpd~]#cat/etc/redhat-release
CentOSrelease6.6(Final)
[root@vsftpd~]#uname-r
2.6.32-504.el6.x86_64
[root@vsftpd~]#uname-m
x86_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-2016:53:58
Glancesversion1.7.4withPsUtil0.6.1
Usage:glances[options]
Options:
-b DisplaynetworkrateinBytepersecond
-B@IP|HOST BindservertothegivenIPv4/IPv6addressorhostname
-c@IP|HOST ConnecttoaGlancesserverbyIPv4/IPv6addressorhostname
-CFILE Pathtotheconfigurationfile
-d DisablediskI/Omodule
-e Enablesensorsmodule
-fFILE SettheHTMLoutputfolderorCSVfile
-h Displaythehelpandexit
-m Disablemountmodule
-n Disablenetworkmodule
-oOUTPUT Defineadditionaloutput(available:HTMLorCSV)
-pPORT Definetheclient/serverTCPport(default:61209)
-PPASSWORD Defineaclient/serverpassword
--password Defineaclient/serverpasswordfromtheprompt
-r Disableprocesslist
-s RunGlancesinservermode
-tSECONDS Setrefreshtimeinseconds(default:3sec)
-v Displaytheversionandexit
-y Enablehddtempmodule
-z Donotusetheboldcolorattribute
-1 StartGlancesinpercpumode
Linux运维的自我修养-ywliyq
技术交流,请加QQ群:256172681
给我写信:ywliyq@163.com
我的技术博客:http://ywliyq.blog.51cto.com/