On CentOS server : How to Start/Stop or restart Ngnix server?

On CentOS server : How to Start/Stop or restart Ngnix server?

Ngnix which is also known as Engine-X, is an open source software for reverse proxying , load balancing, web serving, media streaming, caching and more. As it is already described that Nginx is used as load balancer and reverse proxy for servers like HTTP,HTTPS, UDP and TCP. As Nginx is a load balancer it can easily handle the busiest website on the internet. Ngnix can handle concurrent requests just like a web server. Earlier we used apache server to handle these requests but according to demand the new web servers comes in market called Ngnix.

If you need to restart the Ngnix through command mode then you have to first login as a root user. Login into remote server using SSH. Here are the commands for CentOS linux :

Use the following command:

# /etc/init.d/nginx restart

OR

# /etc/init.d/nginx reload

OR

# service nginx restart

OR

# service nginx reload

TO stop nignix we have to used following commands :

$ sudo service nginx stop
Author
bhawanisingh
Views
5,410
First release
Last update
Rating
0.00 star(s) 0 ratings
Top