CentOS 6.5 编译安装httpd2.4安装
2017-08-25 17:16
645 查看
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
包下载地址: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
相关文章推荐
- 在centos6.5上编译安装httpd-2.4和2.4版本特性介绍
- centos 6 编译安装httpd-2.4
- centos 6 编译安装httpd-2.4
- CentOS6编译安装LAMP(CentOS6、httpd-2.4、php-7.1、mariadb-10.2、memcached-3.0.4)
- centos 6 编译安装httpd-2.4
- httpd2.4在CentOS 6 上编译安装
- 第一讲:CentOS 7 编译安装httpd-2.4
- centos 7下编译安装Apache httpd 2.4
- centos6 编译安装httpd-2.4方法二
- CentOS7编译安装LAMP(CentOS7、httpd-2.4、php-7.1、mariadb-10.2、memcached-3.0.4)
- CentOS-6 源码编译安装httpd 2.4
- centos6.9编译安装httpd2.4
- centos 6.5 编译安装 httpd-2.4.10
- centos6.8简易编译安装httpd2.4
- centos下httpd-2.4的编译安装
- centos6 编译安装httpd-2.4
- centos下httpd-2.4的编译安装
- CentOS6 编译安装httpd-2.4
- centos6.9编译安装httpd2.4(2)
- CentOS6.8 x64+Nginx1.3.8/Apache-httpd 2.4.3+PHP5.4.8(php-fpm)+MySQL5.5.28+CoreSeek4.1源码编译安装