网站首页 进程
Python自动化运维
psutil库获取系统运行的进程和系统利用率[root@serverc~]#yum-yinstallpython2[root@serverc~]#yum-yinstallpython2-psutil[root@serverc~]#python1.cpu信息user执行用户进程的时间百分比system执行内核进程和中断的时间百分比idlec...
Linux下查看进程和端口信息
1、根据进程名查看进程信息,以查看tomcat进程名为例,查看所对应的进程id为1095(或者使用: ps -aux | grep tomcat 查看占用内存等信息) ps -ef | grep tomcat2、根据进程id查看进程占用端口,查看对应端口为8080(如果没有netstat命令,使用 yum -y install net-tools安装) netstat -nap | grep 1095