Table of contents
How to uninstall Nginx
Check the Status and version
sudo service nginx status
nginx -v
First Stop nginx service
sudo service nginx stop
Removes all but config files.
sudo apt-get remove nginx nginx-common
Removes everything.
sudo apt-get autoremove
Remove dependencies used by nginx which are no longer required.
sudo service nginx status
Install Nginx in Ubuntu
After installing the Nginx following the guidline, you need to start the nginx server using the following command line.
sudo systemctl start nginx