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 shows you how to use the Linux monitoring tool glances, which is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
How to use glances under Linux? Glances is a development based on the python language that provides the ability to monitor and analyze performance data for linux or UNIX performance.
The installation of glancesglances is available from the epel source, so the installation is simple, and once the epel source is configured, you can install it using yum. Download and install the epel source:
Wget https://mirrors.aliyun.com/epel/6Server/x86_64/epel-release-6-8.noarch.rpmrpm-ivh epel-release-6-8.noarch.rpmyum makecacheyum install glances
Yum install glances-yglances is a command line tool that includes the following command options:
-b: display network connection speed Byte/ seconds-B @ IP | host: bind server-side IP address or hostname-c @ IP | host: connect glances server-C file: set configuration file default / etc/glances/glances.conf-d: turn off disk Igamot O module-e: display sensor temperature-f file: set output file (format is HTML or CSV)-m: off Closed mount disk module-n: shut down network module-p PORT: set operating port default to 61209-P password: set client / server password-s: set glances operation mode to server-t sec: set screen refresh interval Unit in seconds, default value is 2 seconds, value 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 start the server from the remote connection.
[root@yufu ~] # glances-s-B 192.168.214.187 & [1] 1927 [root@yufu ~] # Glances server started 192.168.214.187 root@yufu 61209 to view the system load status of the current host from another host
The interface of [root@file-server ~] # glances-c 192.168.214.187 is as follows
After connecting, you can also use shortcut keys to interoperate and display commonly used shortcut keys according to different performance.
M: sort process by memory footprint p: sort process by process name c: sort process by CPU occupancy I: sort process by Imax O frequency a: auto sort process d: show / hide disk Imax O statistics f: show / hide file system statistics s: show / hide sensor statistics y: show / hide hard disk temperature statistics Information l: show / hide log n: show / hide network statistics x: delete warning and critical log h: show / hide help interface Q: exit w: delete warning record
Finally, post a performance monitoring chart by exerting pressure on the host.
When the monitoring item reaches different thresholds, different colors will be displayed. This is also detailed in the help. Press'h' to enter the help interface.
The above is how to use the Linux monitoring tool glances. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.