卸载CentOS自带的Apache
1、查看与httpd相关软件包[root@localhost etc]# rpm -qa|grep httpd
[quote]httpd-tools-2.2.15-60.el6.centos.6.x86_64
httpd-2.2.15-60.el6.centos.6.x86_64[/quote]
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
页:
[1]