1、根据进程名称查出进程id
pidof 程序名称
2、根据进程id查出该进程所在路径
pwdx 进程id
eg:
pidof nginx
4161 3528 3527 3526 3525 3524 3523 3522 3521 3520
pwdx 4161
4161: /usr/local/services/nginx-1.6.2/sbin
或者
ps -ef|grep 进程名
lsof -p 进程号
1、根据进程名称查出进程id
pidof 程序名称
2、根据进程id查出该进程所在路径
pwdx 进程id
eg:
pidof nginx
4161 3528 3527 3526 3525 3524 3523 3522 3521 3520
pwdx 4161
4161: /usr/local/services/nginx-1.6.2/sbin
或者
ps -ef|grep 进程名
lsof -p 进程号
端口查看名/根据端口查看进程,以及netstat的一些应用
1.检查所有的端口的进程运行情况netstat -lnp常见参数-a (all)显示所有选项,默认不显示LIS
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M