Linux系統安裝Glances教程

來源:互聯網
上載者:User

  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

  # 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監控的不同功能,詳細查看負載、記憶體等資訊。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.