2020年4月16日

Centos 7: Python3运维脚本(查看服务器信息并发送邮件)

摘要: 1、查看内存占比 #!utf-8 import os lis = [] sram = 0 str1 = os.popen('ps aux','r').readlines()#os.popen,管道输出 strsum = os.popen('grep MemTotal /proc/meminfo',' 阅读全文

posted @ 2020-04-16 11:21 超nmmmmm 阅读(556) 评论(1) 推荐(0) 编辑

导航