1: rpm -qa httpd*
httpd-tools-2.2.15-29.el6.centos.x86_64
httpd-2.2.15-29.el6.centos.x86_64
2:yum -y remove httpd*
Removed:
httpd.x86_64 0:2.2.15-29.el6.centos httpd-tools.x86_64 0:2.2.15-29.el6.centos
Dependency Removed:
gnome-user-share.x86_64 0:2.28.2-3.el6
Complete!
3:下载组件包:apr-1.6.2.tar.gz,apr-util-1.6.0.tar.gz,httpd-2.4.27.tar.bz2
本次按照路径都在:/usr/local 下
4:解压安装相应包依赖包
tar xvf httpd-2.4.27.tar.bz2
tar xvf apr-1.6.2.tar.gz
tar xvf apr-util-1.6.0.tar.gz
mv apr-1.6.2 httpd-2.4.27/srclib/apr
mv apr-util-1.6.0 httpd-2.4.27/srclib/apr-util
yum install expat-devel
5: 编译安装httpd-2.4.27
./configure --prefix=/usr/local/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-included-apr --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork
错误 : configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决方案:yum -y install pcre-devel
make && make install
httpd-tools-2.2.15-29.el6.centos.x86_64
httpd-2.2.15-29.el6.centos.x86_64
2:yum -y remove httpd*
Removed:
httpd.x86_64 0:2.2.15-29.el6.centos httpd-tools.x86_64 0:2.2.15-29.el6.centos
Dependency Removed:
gnome-user-share.x86_64 0:2.28.2-3.el6
Complete!
3:下载组件包:apr-1.6.2.tar.gz,apr-util-1.6.0.tar.gz,httpd-2.4.27.tar.bz2
本次按照路径都在:/usr/local 下
4:解压安装相应包依赖包
tar xvf httpd-2.4.27.tar.bz2
tar xvf apr-1.6.2.tar.gz
tar xvf apr-util-1.6.0.tar.gz
mv apr-1.6.2 httpd-2.4.27/srclib/apr
mv apr-util-1.6.0 httpd-2.4.27/srclib/apr-util
yum install expat-devel
5: 编译安装httpd-2.4.27
./configure --prefix=/usr/local/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-included-apr --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork
错误 : configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决方案:yum -y install pcre-devel
make && make install