CentOS7 -- 64 install python's psutil module, centos7 -- 64 psutil
1. log on to CentOS as root and execute the following commands in sequence:
Wget https://pypi.python.org/packages/source/p/psutil/psutil-2.1.3.tar.gz
Tar zxvf psutil-2.1.3.tar.gz
Cd
Python psutil module simple use example
This article mainly introduces the Python psutil module's simple examples. This article provides a script to view cpu information, memory information, system startup time, and network card information, for more information, see
Easy to install
The Code is as follows:
Pip install
# This is a learning note for the Liaoche teacher Python tutorial Under Linux, there are many system commands that allow us to monitor the state of the system at all times, such as ps Top free et cetera. To obtain these system information, Python can pass subprocess module call and get results. But the best way is to use psutil This third-party m
[Python monitoring] simple use of the psutil ModuleEasy to install pip install psutilThe official website address is https://pythonhosted.org/psutil/ (detailed api documentation) github address is https://github.com/giampaolo/psutil/Psutil is better. One is cross-platform, a
[Python monitoring] psutil module is simple to use, pythonpsutilEasy to install pip install psutilThe official website address is https://pythonhosted.org/psutil/ (detailed api documentation) github address is https://github.com/giampaolo/psutil/Psutil is better. One is cros
One, Psutil module1. Psutil is a cross-platform library (http://code.google.com/p/psutil/) that makes it easy to get the process and system utilization (including CPU, memory, disk, network, etc.) information of the system running. It is mainly used for system monitoring, analyzing and restricting the management of system resources and processes. It implements th
Python about getting the status of the current systemSystem Performance Information Module Psutil #可跨平台Psutil is a cross-platform library that makes it easy to get the process and system utilization of the system runningcan achieve PS, top, LSO, nice, Netstat, ifconfig, who, DF, kill, freeIonice, Iostat, Iotop, uptime, pidof, TTY, Taskset, pmap the functions of t
When using the Python component Psutil, you need to install it first, as follows: wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0. 0.tar.gz -xzvf psutil-2.0. 0. tar.gz cd psutil-2.0. 0
1. Psutil is a cross-platform library (http://code.google.com/p/psutil/) that makes it easy to get the process and system utilization (including CPU, memory, disk, network, etc.) information of the system running. It is mainly used for system monitoring, analyzing and restricting the management of system resources and processes. It implements the functions provided by equivalent command line tools such as P
Python Psutil Simple ExampleWrite a simple detection script with Psutil0. Installing the Psutil modulePsutil Official website: https://pythonhosted.org/psutil/Download:# wget https://pypi.python.org/packages/57/93/ 47a2e3befaf194ccc3d05ffbcba2cdcdd22a231100ef7e4cf63f085c900b/psutil
Psutil Module IntroductionPsutil is an open-source, cross-platform library that provides convenient functions for obtaining information about the system, such as CPU, memory, disk, network, etc. In addition, Psutil can also be used for process management, including determining whether a process exists, getting a list of processes, obtaining process details, and so on. P
This article mainly introduces the Python psutil module Simple Use example, this article directly gives the use script, realizes the view CPU information, the view memory information, the view system start time, the view card information and so on, needs the friend to be possible to refer to under
Installation is simple
The code is as follows:
Pip Install Psutil
Install Python psutil module on 64-bit CentOS7
Record the process of installing Python psutil module on 64-bit CentOS7.
1. log on to CentOS as root and execute the following commands in sequence:
Wget https://pypi.python.org/packages/source/p/psutil/
First, installationThis time, using Python under win7, download the installation package directly to complete the installation. Many of the links on the Internet can not find resources, took some effort, finally found the available links.64-bit:Https://pypi.python.org/packages/2.7/p/psutil/psutil-3.2.1.win-amd64-py2.7.exe#md5= 272e5654143ab40ad503e95496ae368832-b
Use python to obtain system information psutil, pythonpsutil
#! /Usr/bin/env python # coding: utf-8import psutilimport timeimport sysfrom optparse import OptionParserparser = OptionParser () parser. add_option ("-t", "-- time", dest = "time", help = "this parameter allows you to view the bandwidth occupied by the current download.-t indicates the test time ", met
The Psutil module is capable of capturing the process and system utilization of the system. Includes: CPU, memory, disk, network and other information. It is generally used for system monitoring, analyzing and restricting the management of system resources and processes.First download the installation Psutil:wget Https://pypi.python.org/packages/source/p/psutil/psutil
As an important part of the monitoring module, the system basic information acquisition module can help operators understand the health of the current system, as well as the basis of measuring the service quality of the business, such as the tight system resources, which will directly affect the service quality and user experience of the business, and also obtain the traffic information of the equipment. It also allows operations personnel to better assess bandwidth and whether device resources
First you need to install the Psutil package1 wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz-- No-check-certificate2 tar -zxvf psutil-2.0. 0. Tar . GZ 3 CD psutil-2.0. 0 4 Install
The installation is complete, and the
The first step is to download the Psutil installation packageWebsite: https://pypi.python.orgSecond Step decompressionTar-zxv-f psutil-2.0.0.tar.gz #我下载的是2. Version 0.0CD psutil-2.0.0 #进入的目录中去.Third Step Installation:Python setup.py #这个是安装的方法一.Make install #这个是安装的方法二.Attention:It's not enough to have a python in our en
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.