如何删除Apache

我怎样才能从我的服务器中删除apache?我使用的是Ubuntu 9 64位,预装了apache2。

像这样的命令可能会摆脱一切。

dpkg --get-selections | grep apache | xargs apt-get --yes apt-get purge 

你可能应该运行dpkg --get-selections | grep apache dpkg --get-selections | grep apache这个命令首先看到将被卸载的软件包列表,这样你就可以确定grep正在select正确的东西。

作为根(或通过sudo): $ apt-get remove apache2

 sudo /etc/init.d/apache2 stop sudo apt-get --purge remove apache2 

这工作对我来说: aptitude purge ~i~napache