Gracefully Restart Nginx Web Server After Changes Made In a Config File

Originally published at: https://www.cyberciti.biz/faq/howto-unix-linux-gracefully-reload-restart-nginx-webserver/

I know how to gracefully restart Apache web server under Unix like operating system. I made changes to nginx.conf. How do I gracefully restart Nginx web server? How do I make changes in a Nginx server config file to take effect without restarting the Nginx server itself without interrupting users’ current session?

Hi Vivek, this is your faithful nitpicker :slight_smile:

Someway down you write

Nginx web server accepts the following single. The master process can handle the following signals:

The last word in the first sentence should read signal, but I have the feeling that the two sentences should be merged anyway.

Thank you for your tutorials - I am always learning from them.

1 Like

@guntbert thanks for the heads up! The page has been updated. I appreciate your post.


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki