Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux 系統監控神器 Glances 安裝與參數完整指南

編輯:關於 Linux

Glances 是一套以 Python 撰寫的跨平台系統監控工具,能在單一畫面即時顯示 CPU、記憶體、磁碟 I/O、網路、程序等關鍵指標,並支援 Client/Server 模式與多種匯出格式(HTML、CSV)。本文詳細說明安裝需求、部署步驟與常用參數。

安裝前置需求

  • 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

常用參數速查表

參數說明
-b以 Bytes/sec 顯示網路速率
-c @IP|host連線至 Glances Server
-s啟動 Server 模式
-p PORT指定 TCP 埠(預設 61209)
-t sec設定重新整理間隔(預設 3 秒)
-o HTML|CSV匯出報表格式
-r不列出程序(降低 CPU 佔用)
-e啟用感測器模組(僅 Linux)
-y啟用 hddtemp 磁碟溫度模組
-1啟用每核心 CPU 模式

善用參數組合,Glances 可滿足從快速巡檢到長期效能分析的多樣化監控需求。

Copyright © Windows教程網 All Rights Reserved