Linux: Restart Nginx WebServer

How do I restart nginx web server under Linux?

To restart nginx web server use any one of the following command as a root user:
# /etc/init.d/nginx restart
However, recommed way is as follows which should work with any Linux distribution :
# nginx -s reload
OR
# /usr/local/nginx/sbin/nginx -s reload

Republished by Blog Post Promoter

About author

admin
admin 87 posts

I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.

You might also like

Server Managment 0 Comments

Linux Centos 6 Change Server Hostname

I am a new CentOS Linux server user. How do I change hostname on CentOS Linux? How can I change server hostname on CentOS Linux  6? You need to use the

Bash Scripting 0 Comments

HowTo Run a Script In Linux

How do I run a Linux shell script? How can I run a script in Linux? By default script will not run. You need to set execute permission for your

Server Managment 0 Comments

Linux / UNIX – Display the permissions of a file

Q. How do I list or display the permission of a file using ssh? I don’t have GUI installed on a remote Linux computer. A.You need to use ls command with