To manage the Nginx web server on Ubuntu Linux, you can use the following commands:
- Start Nginx:
sudo service nginx start
- Restart Nginx:
sudo service nginx restart
- Stop Nginx:
sudo service nginx stop
Note that these commands require root privileges, so you’ll need to use sudo
to run them.