How to restart nginx on OS X

后端 未结 13 1026
无人共我
无人共我 2021-01-30 04:53

I\'m using nginx on OS X 10.8. Freshly installed nginx but can\'t find a way to restart nginx except kill nginx_pid say kill 64116

13条回答
  •  臣服心动
    2021-01-30 05:43

    One way to stop or reload is through the below command,

    For stop:

    sudo /usr/local/nginx/sbin/nginx -s stop 
    

    Run reload only if the nginx is running:

    sudo /usr/local/nginx/sbin/nginx -s reload
    

    By doing like the above, you wont get nginx: [error] open() "/usr/local/var/run/nginx.pid" this issue

提交回复
热议问题