说明:
1. nginx安装目录为 /usr/local/nginx
2. Use the following syntax: nginx -s signal
3. This command should be executed under the same user that started nginx.
具体如下:
- /usr/local/nginx/sbin/nginx — start service
- /usr/local/nginx/sbin/nginx -s stop — fast shutdown
- /usr/local/nginx/sbin/nginx -s quit — graceful shutdown
- /usr/local/nginx/sbin/nginx -s reload — reloading the configuration file
- /usr/local/nginx/sbin/nginx -s reopen — reopening the log files