Thứ Tư, 9 tháng 8, 2017

How to remove Nginx ubuntu 16.04

sudo apt-get remove nginx nginx-common # Removes all but config files.
sudo apt-get purge nginx nginx-common # Removes everything.
sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

How to remove Nginx ubuntu 16.04
How to remove Nginx ubuntu 16.04

11
rm -rf /etc/nginx to remove the conf files too. – scarver2 Nov 9 '13 at 21:10
1
@scarver2 This is old, but that's what apt-get purge does. – squarebear Jul 20 '14 at 13:48
3
Try also sudo apt-get purge nginx-common – Francisco Luz Feb 16 '15 at 3:31
  
@FranciscoLuz this one worked for me – dukevin May 2 '15 at 5:26
2
With Ubuntu 14.04, it's now: sudo apt-get remove nginx-full nginx-common – Viet Apr 24 '16 at 20:20
  
also remove your ppa archive if you have some in you /etc/apt/source.list – Balman Rawat Jul 19 at 4:55

Previous Post
Next Post

post written by: