# 安裝源碼包需要先安裝 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
# 安裝,報錯時執(zhí)行 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
# 安裝,報錯時執(zhí)行 make clean
make
make install
# 啟動
/usr/local/apache/bin/apachectl start
2020-06-10