How to restart nginx on OS X

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

    What is your nginx pid file location? This is specified in the configuration file, default paths specified compile-time in the config script. You can search for it as such:

    find / -name nginx.pid 2>/dev/null (must issue while nginx is running)

    Solution:

    sudo mkdir -p /usr/local/var/run/
    ln -s /current/path/to/pid/file /usr/local/var/run/nginx.pid
    

提交回复
热议问题