How to start/stop/restart the Nginx server in different ways?
Today I gonna share with you guys how we can start/stop/restart the Nginx server in different ways with Ubuntu Linux server.
You can use below commands on the latest Ubuntu versions.$ sudo systemctl start nginx
$ sudo systemctl stop nginx
$ sudo systemctl restart nginx
But for the older versions of Ubuntu, you can use the following commands.$ sudo service nginx start
$ sudo service nginx stop
$ sudo service nginx restart
That’s it. I hope this will help. π
Photo: https://www.brandeps.com