CentOS 6.5 编译安装httpd2.4安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 6.5 编译安装httpd2.4安装相关的知识,希望对你有一定的参考价值。

CentOS 6.5 编译安装

包下载地址:http://pan.baidu.com/s/1miHrZdQ 密码:p6ny

由于httpd依赖于apr-1.4,apr-util-1.4,所以得安装1.4及以上版本。

首先安装apr和apr-util

tar xf apr-1.5.0.tar.bz2 

./configure --prefix=/usr/local/apr

make && make install

tar xf apr-util-1.5.2.tar.bz2

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr

make && make install


安装httpd2.4

yum -y install pcre-devel

yum -y install openssl-devel 

groupadd -r apache

useradd -r -g apache apache

tar xf httpd-2.4.6.tar.bz2 

./configure --prefix=/usr/local/apache --sysconf=/etc/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork

make && make install


启动服务

/usr/local/apache/bin/apachectl




以上是关于CentOS 6.5 编译安装httpd2.4安装的主要内容,如果未能解决你的问题,请参考以下文章

centos7编译安装httpd2.4.25

Linux源码安装httpd:Centos7

centos6.9编译安装httpd2.4

CentOS6上编译安装httpd2.4

centos6.8简易编译安装httpd2.4

centos6.8简易编译安装httpd2.4