centos7 Apache编译、安装

来源:互联网 发布:淘宝卖刀具 编辑:程序博客网 时间:2024/06/14 18:36
####下载
        wget http://apache.fayea.com/httpd/httpd-2.4.26.tar.gz
####解包
        tar zxvf 
httpd-2.4.26.tar.gz
###编译
./configure --prefix=/usr/local/webserver/apache--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util  --enable-rewrite --enable-so --enable-headers --enable-expires --with-mpm=worker --enable-modules=most --enable-deflate

(--prefix:可以换成你自己的安装目录,--with-apr、--with-apr-util,这两个扩展必须安装,在安装的时候需要进行关联,如果你没有装的话最好是编译安装一下,具体方法自己百度,有很多资料)
###安装
make && make install