55

运维自动化之psutil模块-dianel

 6 years ago
source link: http://blog.51cto.com/dianel/2090968
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
psutil是一个跨平台的库,能够轻松实现获取系统运行的进程和系统利用例(CPU,磁盘,内存,网络等)信息,主要运用于系统监控,分析系统资源和进程管理。psutil比在shell中使用一连串的命令(ps,top,lsof,df,who,ionice,iostat等)命令来分析系统要简单方便得多。psutil的安装源码安装:#yuminstallgccpython-devel-y#wgethttps

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK