Removing nginx?

I was wrong and I just want to uninstall and then reinstall a fresh copy to get started.

I tried

#sudo apt-get nginx uninstall

      

which didn't work the same as

cd /usr/local/src
wget http://nginxcp.com/nginxadmin2.3-stable.tar
tar xf nginxadmin2.3-stable.tar
cd publicnginx
./nginxinstaller uninstall

      

no luck can anyone help me please? running ubuntu 12.04 server version, long term support

+7


source to share


5 answers


To get rid of everything nginx related (configs, etc.):



sudo apt-get purge nginx

      

+13


source


I tried this and it works

Nginx first stop service

sudo service nginx stop



sudo apt-get purge nginx

sudo apt-get autoremove

+6


source


To ubuntu

sudo apt-get purge nginx nginx-common

      

+1


source


Full path with wildcard

sudo apt-get purge nginx*

      

0


source


Remove nginx including dependent package


Check status and version

sudo service nginx status
nginx -v

      

First stop of nginx service

sudo service nginx stop

      

Removes everything except configuration files.

sudo apt-get remove nginx nginx-common

      

Deletes everything.

sudo apt-get autoremove

      

Remove dependencies used by nginx that are no longer required.

sudo service nginx status

      

0


source







All Articles