CentOS 6.5 apache源码安装2.0版
2021-10-04 13:15
标签:apacheyum install -y pcre-devel zlib-devel(可能需要安装gcc)tar xf apr-1.5.2.tar.bz2cd apr-1.5.2./configure --prefix=/usr/local/aprmakemake installcd ..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/makemake installgroupadd wwwuseradd -g www -s /sbin/nologin -M www yum install -y openssl openssl-devel(ssl需要安装)cd ..tar xf httpd-2.4.20.tar.bz2cd 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 --enable-ssl=shared --with-ssl=/usr/local/openssl(ssl需要安装)makemake installcp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpdchmod +x /etc/rc.d/init.d/httpdvim /etc/rc.d/init.d/httpd#chkconfig: 2345 10 90#description: Activates/Deactivates Apache Web Serverchkconfig --add httpdchkconfig --level 35 httpd onvim /usr/local/apache/conf/httpd.confServerName localhost:80vim /etc/profile.d/httpd.shexport PATH=/usr/local/apache/bin:$PATH. /etc/profile.d/httpd.shhttpd -tservice httpd strat本文出自 “每天进步一点点” 博客,请务必保留此出处http://zuoshou.blog.51cto.com/2579903/1956521CentOS 6.5 apache源码安装2.0版标签:apache原文地址:http://zuoshou.blog.51cto.com/2579903/1956521
上一篇:关于python的一些坑
下一篇:<html>
文章标题:CentOS 6.5 apache源码安装2.0版
文章链接:http://soscw.com/index.php/essay/108369.html