免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8917 | 回复: 17
打印 上一主题 下一主题

[求救]怎么卸载redhat自带的apache,本人自己又安装了apache2.2 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-29 09:28 |只看该作者 |倒序浏览
redhat el a4.0 完全安装,系统自带了apache2.0:
其中httpd文件在/usr/sbin目录(该目录是在环境变量PATH中的)
[root@rhel sbin]# rpm -q httpd
httpd-2.0.52-9.ent
[root@rhel sbin]# rpm -e httpd-2.0.52-9.ent
error: Failed dependencies:
        httpd-mmn = 20020903 is needed by (installed) mod_auth_kerb-5.0-1.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_auth_mysql-2.6.1-2.1.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_auth_pgsql-2.0.1-6.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_authz_ldap-0.26-2.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_perl-1.99_16-4.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_python-3.1.3-5.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_ssl-2.0.52-9.ent.x86_64
        httpd-mmn = 20020903 is needed by (installed) php-4.3.9-3.1.x86_64
        httpd-mmn = 20020903 is needed by (installed) mod_dav_svn-1.1.1-2.1.x86_64
        webserver is needed by (installed) webalizer-2.01_10-25.x86_64
        webserver is needed by (installed) mailman-2.1.5-30.rhel4.x86_64
        webserver is needed by (installed) htdig-web-3.2.0b6-3.x86_64
        httpd = 2.0.52-9.ent is needed by (installed) httpd-manual-2.0.52-9.ent.x86_64
        httpd = 2.0.52-9.ent is needed by (installed) httpd-suexec-2.0.52-9.ent.x86_64
        httpd >= 2.0.40 is needed by (installed) mod_auth_pgsql-2.0.1-6.x86_64
        httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_16-4.x86_64
        httpd >= 2.0.40 is needed by (installed) mod_python-3.1.3-5.x86_64
        httpd = 2.0.52-9.ent is needed by (installed) mod_ssl-2.0.52-9.ent.x86_64
        httpd is needed by (installed) system-config-httpd-1.3.1-1.noarch
        httpd is needed by (installed) squirrelmail-1.4.3a-7.EL4.noarch
        httpd = 2.0.52 is needed by (installed) httpd-devel-2.0.52-9.ent.x86_64


现在我又安装了apache2.2(httpd-2.2.6.tar.gz)在/usr/local/apache目录

httpd -k start  ------默认启动2.0
/usr/loca了/apache/bin/httpd -k start  ------启动2.2

现在我把/usr/sbin下的httpd更名,然后作了一个httpd的链接到/usr/loca了/apache/bin/httpd

不知道我这么干有问题没?怎么彻底干掉apache2.0呢?

论坛徽章:
0
2 [报告]
发表于 2007-11-29 09:31 |只看该作者
这两个版本会不会打架,冲突什么的?晕呀晕呀晕

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2007-11-29 11:39 |只看该作者
原帖由 buglife 于 2007-11-29 09:31 发表
这两个版本会不会打架,冲突什么的?晕呀晕呀晕



man rpm

或者,如果你的系统是 RHEL 的话,可以在图形界面下操作,进行软件安装与卸载,方法和 windows 下差不多。

论坛徽章:
0
4 [报告]
发表于 2007-11-29 12:02 |只看该作者
之前那个版本不删也没关系,删掉/usr/sbin/和/etc/rc.d/init.d下httpd,并创建ln到新安装的那个httpd就好了

论坛徽章:
0
5 [报告]
发表于 2007-11-29 13:05 |只看该作者
使用apachectl这个脚本不是很方便,做个链接到/usr/bin/下将原/usr/bin/下的apachectl更名一下。

论坛徽章:
0
6 [报告]
发表于 2007-12-01 11:06 |只看该作者
删了干嘛?
不让自带的httpd启动就行了

论坛徽章:
0
7 [报告]
发表于 2007-12-02 20:41 |只看该作者
apache  和mysql    。。。  
都可以n个共存的

论坛徽章:
0
8 [报告]
发表于 2007-12-02 21:38 |只看该作者
删除原来rpm的httpd可以这样rpm -e `rpm -q httpd` --nodeps --force

其实你也可以不删除的,把原来放在/usr/sbin下的httpd改名,把你编译安装的httpd链接到/usr/bin下,然后把/etc/rc.d/init.d 下的httpd改名,把你编译安装的apachectl复制或者链接到/etc/rc.d/init.d下面就可以像以前启动httpd那样启动apache了

论坛徽章:
0
9 [报告]
发表于 2007-12-03 21:19 |只看该作者
没有影响,只要你想装,N个都行,但是要记得你启动的是哪个?

论坛徽章:
0
10 [报告]
发表于 2007-12-04 13:34 |只看该作者
8楼正解,upupup
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP