nginx stop command code example
Example 1: restart nginx
sudo systemctl restart nginx
Example 2: stop nginx
sudo systemctl stop nginx
Example 3: stop nginx
sudo systemctl start nginx
Example 4: stop nginx
sudo service nginx restart
sudo systemctl restart nginx
sudo systemctl stop nginx
sudo systemctl start nginx
sudo service nginx restart