感谢支持
我们一直在努力

CentOS源码安装Apache2.2.17

#安装需要的库    
yum -y install zlib-devel    
   
cp /home/root/httpd-2.2.17.tar.gz /usr/local/src    
cd /usr/local/src    
tar xzvf httpd-2.2.17.tar.gz    
   
./configure –prefix=/usr/local/apache2 –enable-so –enable-threads –with-mpm=worker –enable-cache –enable-rewrite=shared -enable-deflate=shared –enable-expires=shared    
   
make    
make install   


#启动apache    


/usr/local/apache2/bin/apachectl start    


#若出现notice如httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName    


vi /usr/local/apache2/conf/httpd.conf    


修改ServerName那行为:ServerName localhost:80   


/usr/local/apache2/bin/apachectl restart  

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS源码安装Apache2.2.17
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏