当前位置:才华咖 > 互联网计算机 > 计算机 > 操作系统 > Linux安装和使用Glances的方法介绍
手机版

Linux安装和使用Glances的方法介绍

来源:才华咖 阅读:1.02W 次

Glances是Linux下的监控工具,能够对Linux系统的性能及使用情况进行监控,安装完Glances,就可以使用Glances命令进行相关监控了,下面小编就给大家详细介绍下Linux安装和使用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 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监控的不同功能,详细查看负载、内存等信息。

本文链接:https://www.caihuaka.com/jsjzs/caozuo/lnkwd.html

Copyright © 2024. 才华咖 All right reserved. 浙ICP备20120231号-3

文字美图素材,版权属于原作者。部分文章内容由网友提供推送时因种种原因未能与原作者联系上,若涉及版权问题,敬请原作者联系我们,立即处理。