Linux安装及使用Glances的方法
Linux安装及使用Glances的方法
Glances是Linux下的监控工具,今天学习啦小编给大家带来了Linux安装及使用Glances的方法,有需要的小伙伴们快来看看吧!
Linux安装及使用Glances的方法
Glances安装
学习啦在线学习网 Glances安装要求:python 》= 2.6 和 psutil 》= 0.4.1
学习啦在线学习网 # pip install psutil
学习啦在线学习网 # pip install pysensors
学习啦在线学习网 # pip install hddtemp
学习啦在线学习网 # git clone http://github.com/nicolargo/glances.git
# cd glances
# python setup.py install
学习啦在线学习网 Glances的使用
学习啦在线学习网 # glances -h
学习啦在线学习网 Glances version 1.7a with PsUtil 0.7.1
学习啦在线学习网 Usage: glances [opt]
with opt:
学习啦在线学习网 -b Display network rate in Byte per second
-B @IP|host Bind server to the given IP or host NAME
-c @IP|host Connect to a Glances server
-C file Path to the configuration file
学习啦在线学习网 -d Disable disk I/O module
学习啦在线学习网 -e Enable the sensors module (Linux-only)
-f file Set the output folder (HTML) or file (CSV)
-h Display the syntax and exit
学习啦在线学习网 -m Disable mount module
-n Disable network module
学习啦在线学习网 -o output Define additional output (available: HTML or CSV)
学习啦在线学习网 -p PORT Define the client or server TCP port (default: 61209)
-P password Client/server password
-r Do not list processes (significant CPU use reduction)
-s Run Glances in server mode
-t sec Set the refresh time in seconds (default: 3)
-v Display the version and exit
-y Enable the hddtemp module (needs running hddtemp daemon)
-z Do not use the bold color attribute
学习啦在线学习网 -1 Start Glances in per CPU mode
学习啦在线学习网 上面就是Linux安装使用Glances的方法介绍了,Glances搭配上各种参数能够实现Linux监控的不同功能,详细查看负载、内存等信息。