Board logo

标题: 卸载CentOS自带的Apache [打印本页]

作者: shillan    时间: 2018-6-24 01:30     标题: 卸载CentOS自带的Apache

1、查看与httpd相关软件包
[root@localhost etc]# rpm -qa|grep httpd
httpd-tools-2.2.15-60.el6.centos.6.x86_64
httpd-2.2.15-60.el6.centos.6.x86_64

2、删除httpd:
[root@localhost etc]# rpm -e httpd
rpm -e httpd-tools

如果出现错误提示:
error: Failed dependencies:
httpd >= 2.2.0 is needed by (installed) gnome-user-share-0.10-6.el5.i386
则清除之,即:
[root@localhost etc]# rpm -e gnome-user-share
3、看一下还有没有httpd相关
whereis httpd
4、如果有,则
rm -rf /etc/httpd




欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) Powered by Discuz! 7.2