全球主机交流论坛

标题: 求助关于centos 6.4 安装apache 2.4 ,请版主先莫移。。。谢谢 [打印本页]

作者: Rey    时间: 2013-5-10 14:51
提示: 作者被禁止或删除 内容自动屏蔽
作者: teddysun    时间: 2013-5-10 14:52
我这里有一键安装脚本,重装系统后跑这个脚本就好了,安装最新版Apache2.4.4

http://teddysun.com/lamp
作者: teddysun    时间: 2013-5-10 14:55
编译时需将apr和apr-util直接拷贝到Apache的目录里。

mv apr-1.4.6 httpd-2.4.4/srclib/apr
mv apr-util-1.5.2 httpd-2.4.4/srclib/apr-util
cd httpd-2.4.4
./configure --prefix=/usr/local/apache --enable-so --enable-deflate=shared --enable-ssl=shared --enable-expires=shared  --enable-headers=shared --enable-rewrite=shared --enable-static-support  --with-included-apr --enable-modules=all --enable-mods-shared=all --with-mpm=prefork
make install
作者: Rey    时间: 2013-5-10 14:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: teddysun    时间: 2013-5-10 15:01
Rey 发表于 2013-5-10 14:58
2.4 以往都不一样,我下载了官方的apr了,依旧又这个问题

重装系统后,直接运行我给你的脚本即可。
本人在各个VPS的CentOS系统上测试过几十遍了。
作者: Rey    时间: 2013-5-10 16:10
提示: 作者被禁止或删除 内容自动屏蔽
作者: ICFOX    时间: 2013-5-10 16:18
告别centos了,现在用debian7
作者: Rey    时间: 2013-5-10 16:22
提示: 作者被禁止或删除 内容自动屏蔽
作者: 大胡子    时间: 2013-5-10 16:22
灌水都不会被移动的
作者: 大胡子    时间: 2013-5-10 16:25
status看看状态
日志好像没问题 是启动的
作者: lazyzhu    时间: 2013-5-10 16:27
cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd

这个牛爆了,我无力吐槽了
作者: 冰剑    时间: 2013-5-10 16:40
rm -rf /*
y
作者: Rey    时间: 2013-5-10 18:06
提示: 作者被禁止或删除 内容自动屏蔽
作者: Rey    时间: 2013-5-10 18:18
提示: 作者被禁止或删除 内容自动屏蔽
作者: Rey    时间: 2013-5-11 12:15
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4