我尝试通过下面的链接在mac os x上安装nginx服务器,当我尝试重新启动服务器时,会出现下面的错误。
How to install Nginx webserver on Mac OS X
sudo nginx -s stop
nginx: [error] invalid PID number " " in "/usr/local/var/run/nginx.pid"发布于 2018-02-03 00:14:55
nginx: [error] invalid PID number " " in "/usr/local/var/run/nginx.pid"消息很可能意味着nginx没有启动。
试着先输入nginx来启动它。
要确保nginx已成功启动,请执行ps -ax | grep nginx。我机器上的输出:
MacBook-Pro-Aleksej:~ alexey$ nginx
MacBook-Pro-Aleksej:~ alexey$ ps -ax | grep nginx
69982 ?? 0:00.00 nginx: master process nginx
69984 ?? 0:00.00 nginx: worker process
69995 ttys000 0:00.00 grep nginxhttps://stackoverflow.com/questions/48576799
复制相似问题