Glances是Linux高的监控东西,可以对Linux体系的机能及运用状况停止监控,装置完Glances,便能够运用Glances号令停止相干监控了,上面小编便给各人具体引见高Linux装置战运用Glances的要领,感趣味的伴侣能够去理解高。
Glances装置
Glances装置要供:python 》= 2.6 战 psutil 》= 0.4.1
# pip install psutil
# pip install pysensors
# pip install hddtemp
# git clone https://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监控的差别罪能,具体查看负载、内存等疑息。
相关文章