How to restart nginx on OS X

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

    As a future resource, you can consult http://wiki.nginx.org/CommandLine

    Nginx probably runs as root, so you will need to run a variant of the following command to affect it.

    sudo nginx -s stop | reload | quit | reopen
    

    There is usually not much reason to restart Nginx like Apache would need. If you have modified a configuration file, you may just want to the reload option.

提交回复
热议问题