Apache HTTP Server(简称httpd)是互联网使用最广泛的开源web服务中间件,诞生于1995年。通常与Linux, MySQL, PHP搭配使用,组合成LAMP,用于部署网站。
httpd官网
截至目前,httpd的最新版本是2.4.46
https://httpd.apache.org/docs/2.4/install.html
下载apr和apr-util
apr是Apache Portable Runtime的缩写,apr官网下载
清华镜像源下载apr和apr-util
https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.7.0.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.bz2
下载httpd
清华镜像源下载httpd
https://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.46.tar.bz2
编译安装apr
tar -jxf apr-1.7.0.tar.bz2
cd apr-1.7.0
./configure --prefix=/usr/local/apr
make && make install
编译安装apr-util
tar -jxf apr-util-1.6.1.tar.bz2
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
编译安装httpd
tar -jxf httpd-2.4.46.tar.bz2
cd httpd-2.4.46
./configure \
--prefix=/usr/local/apache \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util \
--enable-so \
--enable-ssl\
--enable-alib\
--with-ssl\
--with--pcre\
--enable-deflate=shared \
--enable-expires=shared \
--enable-rewrite=shared \
--enable-static-support
make && make install
欢迎关注我的微信公众号“九万里大数据”,原创技术文章第一时间推送。
欢迎访问原创技术博客网站 jwldata.com,排版更清晰,阅读更爽快。