• 欢迎访问VPS岛网站,国外VPS,国内VPS,国外服务器,国内服务器,服务器主机,测评及优惠码,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站 QQ群

CentOS 6.5 apache源码安装1.0版

Apache技术 jin626889 15次浏览 已收录 0个评论

yum install -y pcre-devel zlib-devel(可能需要安装gcc)

tar xf apr-1.5.2.tar.bz2

cd apr-1.5.2

./configure –prefix=/usr/local/apr

make

make install

cd ..

tar xf apr-util-1.5.4.tar.bz2 

cd apr-util-1.5.4

./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr/

make

make install

cd ..

tar xf httpd-2.4.20.tar.bz2

cd httpd-2.4.20

./configure –prefix=/usr/local/apache –sysconfdir=/usr/local/apache/conf/ –enable-so –enable–ssl –enable-cgi –enable-expires –enable-deflate –enable-rewrite –with-zlib –with-pcre –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –enable-modeles=most –enable-mpms-shared=all –with-mpm=event | tee /root/apache

make

make install

cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

chmod +x /etc/init.d/httpd

service httpd start

service httpd restart

vim /usr/local/apache/conf/httpd.conf

ServerName localhost:80

vim /etc/profile.d/httpd.sh

export PATH=/usr/local/apache/bin:$PATH

. /etc/profile.d/httpd.sh

httpd -t


VPS岛 的文章和资源来自互联网,仅作为参考资料,如果有侵犯版权的资源请尽快联系站长,我们会在24h内删除有争议的资源。丨 转载请注明CentOS 6.5 apache源码安装1.0版
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址