[apache] linux Apache 编译安装
[apache] linux Apache 编译安装
作者:flymaster
qq:908601287
blog:http://www.cnblogs.com/flymaster500/
rpm -qa httpd
rpm -e --nodeps httpd-2.2.15-60.el6.centos.6.x86_64
cd /home/fly/tools/
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.29.tar.gz
tar xfvz http-2.4.29.tar.gz
cd httpd-2.4.29
./configure \
--prefix=/application/apache2.4.29 \
--enable-deflate \
--enable-expires \
--enable-headers \
--enable-modules=most \
--enable-so \
--with-mpm=worker \
--enable-rewrite \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/ \
make && make install
ln -s /application/apache2.4.29/ /application/apache
/application/apache/bin/apachectl -t
/application/apache/bin/apachectl start
lsof -i :80
ps -ef|grep httpd
用网页登录提示work表示安装成功
网页主页index.html 在目录htdocs下设置主页
作者:flymaster
qq:908601287
blog:http://www.cnblogs.com/flymaster500/

浙公网安备 33010602011771号