首页 > Web开发 > 详细

Apache 安装

时间:2016-09-22 18:26:24      阅读:179      评论:0      收藏:0      [点我收藏+]

1.编译方法1


./configure --prefix=/usr/local/apache \

--with-mpm=prefork \

--enable-so \

--enable-modules="all" \

--enable-mods-shared="all"

make && make

cp support/apachectl /etc/init.d/httpd

chmod +x /etc/init.d/httpd


2.编译方法2


./configure --prefix=/usr/local/apache \

--enable-so \

--enable-rewrite \

--with-mpm=worker

make && make install


3.查看Apache 静态模块


/usr/local/apache/bin/apachectl -l


4.查看动态模块


ls /usr/local/apache/modules


5.启动Apache


/usr/local/apache/bin/apachectl start


本文出自 “眼眸刻着你的微笑” 博客,请务必保留此出处http://dengaosky.blog.51cto.com/9215128/1855308

Apache 安装

原文:http://dengaosky.blog.51cto.com/9215128/1855308

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!