rockylinux9.3瀹夎 (rocky linux8.5瀹夎鏁欑▼)

rockylinux8.8瀹夎鏁欑▼,rockylinux8.5瀹夎鏁欑▼

推荐

Ubuntu22部署zabbix6.0,中文设置,防止乱码

Zabbix拓扑图绘制,快速定位故障主机位置

一小时带你学习完zabbix监控,生产全套详细学习教程

Docker 容器监控及 prometheus+cAdvisor监控容器

一分钟部署完Prometheus+alertmanager+grafana

一/安装glances

yum install epel* -y
yum install python-pip python-devel -y
yum install glances -y
yum install iftop -y 
yum install htop -y

二/命令查看glances

[root@R9-10-1-1-13 ~]# glances

rockylinux8.8瀹夎鏁欑▼,rockylinux8.5瀹夎鏁欑▼

三/设置开机自启

[root@R9-10-1-1-13 opt]# pip3 install bottle
[root@R9-10-1-1-13 ~]# cat /etc/systemd/system/glancesweb.service
[Unit]
Description = Glances in Web Server Mode
After = network.target
[Service]
ExecStart = /usr/bin/glances -w -t 5
[Install]
WantedBy = multi-user.target
[root@R9-10-1-1-13 opt]# systemctl enable glancesweb

四/浏览器访问http://ip:61208

rockylinux8.8瀹夎鏁欑▼,rockylinux8.5瀹夎鏁欑▼