您现在的位置是:首页 > 其他

李清波 2014-07-05 其他 53186 复制当前网址

Centos如何卸载apache


我们来详细介绍一下在Centos下卸载apache(httpd)的方法:


我们先通过下面的命令来查看一下安装软件

rpm -qa | grep httpd


httpd-2.2.15-28.el6.centos.i686

httpd-tools-2.2.15-28.el6.centos.i686


直接移除

rpm -e httpd


如果显示下面的错误


error: Failed dependencies:

    httpd-mmn = 20051115 is needed by (installed) php-5.3.3-22.el6.i686

    httpd >= 2.2.0 is needed by (installed) gnome-user-share-2.28.2-3.el6.i686


这里的提示说明要删除httpd前,需要先删除error: Failed dependencies:下面的软件

php和gnome-user-share

注:有时候会更多

下面我们来先删除error: Failed dependencies:下面的软件

rpm -e gnome-user-share

rpm -e php

rpm -e httpd


就可以删除成功了。

文章来源:http://liqingbo.com/blog-317.html

评论