How to restart nginx on OS X

后端 未结 13 1024
无人共我
无人共我 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:54

    Try this:

    sudo nginx -s stop

    followed by a:

    sudo nginx

    It seems that nginx keeps track of its state, to if you stop it twice, it will complain. But the above worked for me.

提交回复
热议问题