# 安装源码包需要先安装 C 语言编译器
yum install gcc -y
# 下载
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.2.9.tar.gz
# 解压缩
tar -axvf httpd-2.2.9.tar.gz
cd httpd-2.2.9
# 配置与检查
./configure --prefix=/usr/local/apache
# 安装,报错时执行 make clean
make
make install
# 启动
/usr/local/apache/bin/apachectl start
yum install gcc -y
# 下载
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.2.9.tar.gz
# 解压缩
tar -axvf httpd-2.2.9.tar.gz
cd httpd-2.2.9
# 配置与检查
./configure --prefix=/usr/local/apache
# 安装,报错时执行 make clean
make
make install
# 启动
/usr/local/apache/bin/apachectl start
2020-06-10