免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 738 | 回复: 0
打印 上一主题 下一主题

Apache安装编译(20081126) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-10 17:45 |只看该作者 |倒序浏览

本人使用最新Apache源代码安装配置,源码包为httpd-2.2.10.tar.gz
1、下载源码包httpd-2.2.10.tar.gz   
http://httpd.apache.org/download
2、解压
tar zxvf httpd-2.2.10.tar.gz
3、编译apr
cd /wl/apache/httpd-2.2.10/srclib/apr
./configure --prefix=/usr/local/apr
make
make install
4、编译apr-util
cd /wl/apache/httpd-2.2.10/srclib/apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
5、编译apache
cd /wl/apache/httpd-2.2.10
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-mpm=worker --enable-modules=all --enable-so --disable-cgi
make
make install
6、复制控制脚本并建立启动项
注意:在操作下面命令前,先要把/etc/init.d/httpd备份一下,以防止恢复之用。
cp /etc/init.d/httpd /etc/init.d/httpd-20081126
cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
vi /etc/rc.d/rc.local
添加内容:
service httpd start

这样,最新的源码包httpd-2.2.10.tar.gz就安装完毕了,现在开始去发布主页了。

附:相关的启动、停止命令
启动:service httpd start
停止:service httpd stop
重启:service httpd restart


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88132/showart_1712982.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP