- Start: sbin/nginx
- Stop immediately: sbin/nginx -s stop
- Smooth stop: sbin/nginx -s quit
- Reload configuration: sbin/nginx -s reload (will not cause the server to shut down, but load the configuration file. Use it after modifying the configuration file!)
- Restart the log: sbin/nginx -s reopen
No matter under windows or linux, send signal (signal) through nginx to complete the processing: