httpd-2.0.52-38升级到httpd-2.0.52-41步骤如下:
下载网站
http://centos.mirror.frontiernet.net/4.7/apt/i386/RPMS.os/
其中,有四个东西要升级,前版本都是2.0.52-38
httpd-2.0.52-41.ent.centos4.i386.rpm
httpd-manual-2.0.52-41.ent.centos4.i386.rpm
mod_ssl-2.0.52-41.ent.centos4.i386.rpm
httpd-suexec-2.0.52-41.ent.centos4.i386.rpm
升级顺序:
事前准备: /etc/httpd/conf/httpd.conf /etc/httpd/conf.d/ssl.conf 这两个文件要备份好,因为在安装的时候会被覆盖掉。
1. 先卸载mod_ssl-2.0.52-38.ent.centos4 命令 rpm -e mod_ssl
查看有没有安装命令 rpm -qa | grep mod_ssl
rpm -qa | grep httpd
2 强制卸载 httpd-2.0.52-38.ent.centos4.i386.rpm
rpm -e httpd-2.0.52-38.ent.centos4 --nodeps
3 安装httpd-2.0.52-41.ent.centos4.i386.rpm
直接双击就可以
4. 卸载httpd-manual-2.0.52-38.ent.centos4.i386.rpm
5 安装httpd-manual-2.0.52-41.ent.centos4.i386.rpm
6 强制卸载 httpd-suexec-2.0.52-38.ent.centos4.i386.rpm
rpm -e httpd-suexec-2.0.52-38.ent.centos4 --nodeps
7 安装httpd-suexec-2.0.52-41.ent.centos4.i386.rpm
8 安装mod_ssl-2.0.52-41.ent.centos4.i386.rpm
9 把之前备份的 /etc/httpd/conf/httpd.conf /etc/httpd/conf.d/ssl.conf 还原回来就可以直接用了
10 启动service httpd start
升级完毕。