uninstalling nginx?
Asked Answered
R

5

10

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

Rawls answered 10/2, 2013 at 19:56 Comment(0)
S
17

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

sudo apt-get purge nginx
Sphere answered 10/2, 2013 at 19:58 Comment(0)
F
9

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
Foster answered 12/5, 2019 at 3:50 Comment(0)
S
8

I have tried this and its working

First Stop nginx service

sudo service nginx stop

sudo apt-get purge nginx

sudo apt-get autoremove

Soupandfish answered 21/5, 2014 at 5:15 Comment(0)
N
7

Completly away with a wildcard

sudo apt-get purge nginx*
Nickell answered 10/12, 2018 at 16:11 Comment(0)
B
4

On ubuntu

sudo apt-get purge nginx nginx-common
Beker answered 3/6, 2018 at 18:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.