Nginx commands

Execute the below commands to perform nginx operations on your linux server

Check nginx service status

sudo service nginx status
           OR
sudo systemctl nginx status

nginx

Check nginx configuration

sudo nginx –t

t stands for testing
 testing

Stop nginx service

sudo service nginx stop
         OR
sudo systemctl nginx stop

Restart nginx service

sudo service nginx restart
         OR
sudo systemctl nginx restart

Subscribe Now