Apache 服务安装

安装:
[root@yznvm1 yzn]# wget http://labs.renren.com/apache-mirror//httpd/httpd-2.2.21.tar.gz

[root@yznvm1 yzn]# tar xzvf httpd-2.2.21.tar.gz
[root@yznvm1 yzn]# cd httpd-2.2.21
[root@yznvm1 httpd-2.2.21]# ./configure -prefix=/usr/local/apache -enable-so -enable-rewrite -with-mpm=worker
[root@yznvm1 httpd-2.2.21]# make && make install
检查
[root@yznvm1 httpd-2.2.21]# /usr/local/apache/bin/apachectl -l

原文地址:https://www.cnblogs.com/yanzhenan/p/2318998.html