Completely uninstall the nginx command under ubuntu16.04

  • 2020-05-15 03:42:38
  • OfStack

nginx overview

nginx is a free, open source, high-performance HTTP server and reverse proxy server. It is also an IMAP, POP3 and SMTP proxy server. nginx can be used as one HTTP server for website publishing, and nginx can be used as a reverse proxy for load balancing.

Delete nginx and its associated configuration files

sudo apt-get --purge remove nginx

Automatically removes all unused software packages

sudo apt-get autoremove

Remove software related to nginx


sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core

View nginx running processes, if any, kill off


ps aux | grep nginx
sudo kill -9  process pid1  process pid2 ....

Reshipment nginx


sudo apt-get update
sudo apt-get install nginx

conclusion


Related articles: