Controlling nginx http://nginx.org/en/docs/control.html nginx can be controlled with signals. The process ID of the master process is written to the file/usr/local/nginx/logs/nginx.pid by default. This name may be changed at configuration time, or in
参考:https://www.phusionpassenger.com/library/install/nginx/install/oss/rubygems_rvm/ Starting Nginx You can start Nginx by running: Copy$ sudo /opt/nginx/sbin/nginx Shutting down Nginx You can shut down Nginx by killing its PID with the kill command.