目 录
一、问题
我们经常用如下命令来查看我们关心的进程,
ps -ef | grep xxx
比如,想了解nginx进程的命令操作和结果如下:
[root@ecs-52a1 home]# ps -ef | grep nginx
root 61353 54686 0 17:26 pts/0 00:00:00 grep --color=auto nginx
root 255830 1 0 2月06 ? 00:00:00 nginx: master process /home/vcms_client/sbin/nginx_vcms.out -p /home/vcms_client
nobody 255836 255830 0 2月06 ? 00:00:07 nginx: worker process
root 257409 1 0 2月06 ? 00:00:00 nginx: master process /home/nginx_web/sbin/nginx_client.out -p /home/nginx_web
nobody 257417 257409 0 2月06 ? 00:00:42 nginx: worker process
[root@ecs-