# 帮助文档
1. 源码 https://github.com/apache/httpd/tree/trunk
1. 安装说明 https://httpd.apache.org/docs/2.4/install.html
1. 所有版本https://github.com/apache/httpd/tags
git clone https://github.com/apache/httpd.git apache2 cd apache2 git clone https://github.com/apache/apr.git srclib/apr git clone https://github.com/apache/apr-util.git srclib/apr-util ./buildconf ./configure --prefix=/opt/apache2 --with-port=90 make make install
/opt/apache2/bin/apachectl -k stop /opt/apache2/bin/apachectl -k start
curl localhost:90 -v
文章有(2)条网友点评
# 下载Apache源码
wget https://www.apache.org/dist/httpd/httpd-2.4.54.tar.gz
# 解压源码包
tar -xzf httpd-2.4.54.tar.gz
# 进入源码目录
cd httpd-2.4.54
# 安装依赖(以Ubuntu为例,其他系统请安装相应的依赖)
sudo apt-get install build-essential libapr1-dev libapr-util1-dev libssl-dev
# 配置(可根据需要添加更多的编译选项)
./configure –prefix=/usr/local/apache –enable-so
# 编译
make
# 安装
sudo make install
# 启动Apache
/usr/local/apache/bin/apachectl start
https://blog.csdn.net/qq_61116007/article/details/127785574