apache2.4.25编译

apache2.4.25编译
首先下载需要的包
http://apr.apache.org/download.cgi
apr-1.5.2.tar.gz
apr-util-1.5.4.tar.gz

http://httpd.apache.org/download.cgi
httpd-2.4.25.tar.gz

下载好之后 把包都解压,然后

然后mv 到  httpd-2.4.25/srclib/apr   apr为重命名
然后mv 到   apr-util-1.3.9 httpd-2.4.25/srclib/apr-util


 ./configure --prefix=/cicro/wcm/as/apache --with-included-apr --enable-so -enable-ssl --enable-rewrite --enable-deflate --enable-expires --enable-headers --enable-vhost-alias --enable-proxy --enable-proxy-http --enable-dbd --enable-reqtimeout

如果出现错误  请安装依赖


 yum -y install gcc openssl openssl-devel apr apr-devel apr-util apr-util-devel pcre pcre-devel sqlite sqlite-devel 


最后make & make install


发布了67 篇原创文章 · 获赞 11 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/cuibruce/article/details/69230049