How to totally remove the nginx from ubuntu 14.04 LTS
I have un-install all the nginx related packages.(like this answer said https://askubuntu.com/a/457412/383308), after that I run the command below command gives nothing.
sudo find / -name 'nginx'
When I run such command, I have one result:
zyh@zyh-desktop:~$ ps -ef | grep nginx
zyh 2666 2442 0 11:12 pts/1 00:00:00 grep --color=auto nginx
But when I open the browser, and enter 127.0.0.1, I still see a welcome page of the nginx. See below:
I think my problem is quite similar to this one [SOLVED] nginx running, but ... not installed, but after run the command
sudo update-rc.d -f nginx remove
sudo rm /etc/init.d/nginx
And after the reboot, I can still see the nginx page from 127.0.0.1. Any ideas how to totally remove nginx. Thanks.
PS: I have used the auto-remove
option to uninstall all the nginx*
packages, and I see that my desktop is removed, and I later install a new ubuntu desktop.
EDIT It looks like I can open a python http server on the 80 port, such as below
zyh@zyh-desktop:~/Downloads/code/share-file$ sudo python -m SimpleHTTPServerWithUpload 80
Serving HTTP on 0.0.0.0 port 80 ...
While when I open the Firefox browser, and type 127.0.0.1, I still see the nginx welcome page.
Solution 1:
Please stop nginx first then try it to remove:
sudo apt-get purge nginx nginx-common
Or
sudo apt-get remove nginx-core nginx-full nginx-light nginx-extras nginx-naxsi nginx-common
Solution 2:
It looks like the web page in my question(see the screen shot above) is a cached page, and follow the methods mentioned in this post:How can I clear a single site from the cache in Firefox?, I just clear the cache, and now, I see Firefox can't connect to 127.0.0.1 now. Sorry about the noise.
Which means the nginx is already un-installed from my Ubuntu.