暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Apache HTTP Server(httpd)使用源码包编译安装

九万里大数据 2021-07-08
923

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官网下载[1]

清华镜像源下载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官网下载[2]

清华镜像源下载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[3],排版更清晰,阅读更爽快。

引用链接

[1]
 apr官网下载: http://apr.apache.org/download.cgi
[2]
 httpd官网下载: https://httpd.apache.org/download.cgi#apache24
[3]
 jwldata.com: https://www.jwldata.com


文章转载自九万里大数据,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论