Ubuntu Linux: Start / Restart / Stop Nginx Web Server

by on January 1, 2011 · 0 comments· last updated at December 1, 2012

How do I restart / stop / start the nginx web server under Ubuntu Linux operating systems?

Tutorial details
DifficultyEasy (rss)
Root privilegesYes
Requirementssudo
nginx

The nginx web server can be restarted using any one of the following command line syntax:

sudo service nginx restart

OR

sudo /etc/init.d/nginx restart

The same commands can be used to start / stop the nginx server:

 
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
 

OR

 
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart
 

It is also possible to use the following syntax:
sudo nginx -s reload



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , ,

Previous Faq:

Next Faq: