【问题标题】:nginx mac invalid pid?nginx mac 无效的pid?
【发布时间】: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

谢谢

【问题讨论】:

    标签: macos nginx


    【解决方案1】:

    尝试直接杀死进程:

    kill 15597

    或者你可以试试 usr/local/etc/nginx 中的 nginx 启动脚本:

    nginx -s quit
    

    您可能需要根据您的安装调整路径。

    【讨论】:

      猜你喜欢
      • 2011-11-30
      • 2017-07-21
      • 1970-01-01
      • 2017-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-15
      相关资源
      最近更新 更多