【发布时间】:2012-01-28 17:00:54
【问题描述】:
我刚刚安装了 nginx。我现在正在尝试使用日志文件夹中的 pid 文件来阻止它,但它告诉我它是 illegal process id: cat /usr/local/logs/nginx.pid
我运行的命令是:sudo kill 'cat /usr/local/logs/nginx.pid'
pid 是15597,但在活动监视器中我也看不到具有该 ID 的进程。当我输入:ps ax | grep nginx 我得到:
15597 ?? Ss 0:00.00 nginx: master process nginx
15883 ?? S 0:00.00 nginx: worker process
15898 s000 R+ 0:00.00 grep nginx
谢谢
【问题讨论】: