What are the ways to start and stop nginx in ubuntu?
To start and stop the nginx server, you can use the following commands:
Start the nginx server:
Use the command “sudo systemctl start nginx”
Stop the nginx server by running the command: sudo systemctl stop nginx.
If you are using an older version of Ubuntu, you can use the following command:
Start the nginx server by running the command:
sudo service nginx start
Stop the nginx server:
sudo service nginx stop
Please note that starting and stopping the nginx server requires sudo privileges.