详情内容

Apache的编译安装

1.apr的编译安装apr-1.5.2.tar.gz

gzip -d apr-1.5.2.tar.gz
tar xvf apr-1.5.2.tar
cd apr-a.5.2
./configure --prefix=/usr/local/apr
make && make install

2.apr-util的编译安装apr-util-1.5.4.tar.gz

gzip -d apr-util-1.5.4.tar.gz 
tar xvf apr-util-1.5.4.tar
cd apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install

3.apache的编译安装httpd-2.4.25.tar.gz

gzip -d httpd-2.4.25.tar.gz
tar xvf httpd-2.4.25.tar
cd httpd-2.4.25
./configure  \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util \
--prefix=/usr/local/apache \
--sysconfdir=/etc/httpd24  \
--enable-so                \
--enable-ssl               \
--enable-cgi               \
--enable-rewrite           \
--with-zlib                \
--with-pcre                \
--with-mpm=prefork         \
--enable-modules=most      \
--enable-mpms-shared=all
make && make install
/usr/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT #开放80端口

4.错误解决方案

configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.

将apr-1.5.2.tar.gz解压httpd-2.4.25下的srclib目录下命名为apr

将apr-util-1.5.4.tar.gz解压httpd-2.4.25下的srclib目录下命名为apr-util

 
友情链接:
联系方式:
相关网站:
邮箱:473166512@qq.com
邮箱:admin@okgoes.com
Copyright © 2014-2016 完美起航. 版权所有
Powered by 完美起航 V1.3( 赣ICP备15002760号 )