Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninstalling nginx?

I've gone pretty badly wrong and I want to just uninstall and then reinstall a fresh copy to start over.

I've tried

#sudo apt-get nginx uninstall

that didn't work as well as

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

with no luck, can someone help me out please? running ubuntu 12.04 server edition, long time support

like image 527
samayres1992 Avatar asked Feb 10 '13 19:02

samayres1992


1 Answers

Uninstall nginx including dependent package


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
like image 149
SUNNETmedia Avatar answered Nov 15 '22 19:11

SUNNETmedia