nginx Getting started with nginx Reload NGINX configuration file


As a root user:

sudo nginx -s reload

Ubuntu 14.04 example

sudo service nginx reload

Ubuntu 16.04 example

sudo systemctl reload nginx

Before reloading, it is a good idea to check config for syntax errors:

sudo nginx -t


sudo service nginx configtest