nginx -s reload
You can ask Nginx to refresh its configuration file using nginx -s reload
Controlling NGINX
To reload your configuration, you can stop or restart NGINX, or send signals to the master process. A signal can be sent by running the nginx command (invoking the NGINX executable) with the -s argument.
where <SIGNAL> can be one of the following:
quit – Shut down gracefullyreload – Reload the configuration filereopen – Reopen log filesstop – Shut down immediately (fast shutdown)
The kill utility can also be used to send a signal directly to the master process. The process ID of the master process is written, by default, to the nginx.pid file, which is located in the /usr/local/nginx/logs or /var/run directory.