In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use Linux monitoring tools Glances, with certain reference value, interested friends can refer to, I hope you have a lot of gains after reading this article, the following let Xiaobian take you to understand.
Glances is a cross-platform command-line system monitoring tool written in Python that uses the psutil library to grab information from the system. With Glances, we can monitor CPU, average load, memory, network traffic, disk I/O, other processors, and file system space utilization.
Install glasses
Glances are available in the epel source, so installation is very simple, configure the epel source can be installed using yum. Download and install epel Source:
wget https://mirrors.aliyun.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpmyum makecache
yum install glances
yum install glances -y
Glances is a command-line tool that includes the following command options:
❝
-b: Displays network connection speed in Byte/sec-B @IP| host: bind server IP address or host name-c @IP| host: Connect glances server-side-C file: Set configuration file default is/etc/glances/glances.conf -d: Turn off disk I/O module-e: Display sensor temperature-f file: Set output file (HTML or CSV format)-m: Close mounted disk module-n: Close network module-p PORT: Set run port Default is 61209 -P password: Set client/server password-s: Set glances run mode to server-t sec: Set screen refresh interval in seconds, default is 2 seconds, value allowed range: 1~32767 -h : Display help information-v : Display version information
glances allows remote connection to view monitoring information. After the server is started, it is convenient to view it from a remote connection. Start the server.
[root@yufu ~]# glances -s -B 192.168.214.187 &[1] 1927[root@yufu ~]# Glances server started 192.168.214.187:61209
View the system load status of the current host from another host
[root@file-server ~]# glances -c 192.168.214.187
The interface after connection is as follows
After connection, you can also use shortcut keys for interactive operation, and display commonly used shortcut keys according to different performances.
❝
m : Sort processes by memory usage p : Sort processes by process name c : Sort processes by CPU usage i : Sort processes by I/O frequency a : Sort processes automatically d : Show/hide disk I/O statistics f : Show/hide file system statistics s : Show/hide sensor statistics y : Show/hide hard drive temperature statistics l : Show/hide logs n : show/hide network statistics x : delete warning and critical logs h : show/hide help q : exit w : delete warning logs
Finally, paste a performance monitoring chart by applying pressure to the host
Different colors will be displayed when the monitoring item reaches different thresholds. This is also explained in detail in the help. Press 'h' to enter the help interface.
Thank you for reading this article carefully. I hope that the article "How to Use Linux Monitoring Tools Glances" shared by Xiaobian will help everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.