[root@iZ259r7h4pfZ ~]# top
top - 23:58:06 up 289 days, 15:44, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 214 total, 1 running, 172 sleeping, 0 stopped, 41 zombie
Cpu(s): 2.1%us, 0.3%sy, 0.0%ni, 97.4%id, 0.2%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1920740k total, 1097952k used, 822788k free, 13564k buffers
Swap: 0k total, 0k used, 0k free, 89556k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
或者
[root@iZ259r7h4pfZ ~]# ps aux|grep nginx
root 961 0.0 0.0 46288 1480 ? Ss 2017 0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
www 2023 0.0 1.1 66448 22800 ? S 2017 16:50 nginx: worker process
root 23415 0.0 0.0 103188 864 pts/8 S+ 23:58 0:00 grep nginx
[root@iZ259r7h4pfZ ~]# lsof -p 961
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 961 root cwd DIR 202,1 4096 2 /
nginx 961 root rtd DIR 202,1 4096 2 /
nginx 961 root txt REG 202,1 5027882 1078631 /usr/local/nginx/sbin/nginx