看来一个简单的方法apt-get remove apache2
并没有完全消除,apache2
因为我仍然可以在运行时在其中一个进程中看到它top
。如何完全删除apache2
其ubuntu服务器上的?
确实没有删除它:
~# which apache2
/usr/sbin/apache2
~# whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
但是当我再做apt-get remove apache2
一次时:
# apt-get remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt-get autoremove
,然后sudo rm -rf /etc/apache2
apt-get purge apache2
。它将删除所有配置文件。