nginx server stop code example
Example 1: stop nginx
sudo systemctl stop nginx
Example 2: stop nginx
sudo systemctl start nginx
Example 3: stop nginx
sudo service nginx restart
Example 4: stop nginx
# stops nginx
sudo systemctl stop nginx
# starts nginx
sudo systemctl start nginx