In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-12-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install glances on Linux systems. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Glances is an open source command line system monitoring tool for Linux and BSD. It is developed in Python language and uses psutil library to collect system data. It can monitor CPU, load, memory, disk Imax O, network traffic and other information.
Install Glance to support Linux, Mac OS X, FreeBSD, Windows and other systems, installation is also very convenient. Install on Ubuntu:
$sudo apt-get update$ sudo apt-get install python-pip build-essential python-dev $sudo pip install glances installed on CentOS 6.x:
$su root# rpm-ivh http://fr2.rpmfind.net/linux/epel/6/x86_64/epel-release-6-7.noarch.rpm# yum install python-pip python-devel# pip-python install glances is installed on FreeBSD:
# pkg_add-r py27-glances or # cd / usr/ports/sysutils/py-glances/# make install clean can be used on a stand-alone machine or in client-server mode. It is easy to use a stand-alone machine. Just run it directly:
The glances client-server mode is slightly more complex, requiring glances-s to be started in server mode on one machine and glances-c in client mode on the other. For example, if glances is installed on both machines An and B, if you want to see glances on B on A, you need to start glances in server mode on B (assuming that the IP address of B is 192.168.2.22):
$glances-s and then access B (server) with Glances from A (client):
The outstanding advantage of $glances-c 192.168.2.22 programming Glances over a bunch of other established system monitoring tools is that it provides XML-RPC API, programmable. With the API provided by Glances, we can easily get the data (what we want) programmatically. For example, here is a simple Python script that prints system information:
$vi test.pythonimport xmlrpclib s = xmlrpclib.ServerProxy ('pythonimport ()) run the above script:
$python test.py {"linux_distro": "Ubuntu 12.04", "platform": "64bit", "os_name": "Linux", "hostname": "vpsee.com", "os_version": "3.2.0-23-virtual"} Thank you for reading! This is the end of the article on "how to install glances in Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.