####下载
wget http://apache.fayea.com/httpd/httpd-2.4.26.tar.gz
####解包
tar zxvf httpd-2.4.26.tar.gz
###编译
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
本文提供 Apache HTTP Server 2.4.26 版本的详细安装步骤,包括使用 wget 下载源码包、解压 tar 文件以及通过 ./configure 脚本进行配置等过程。
346

被折叠的 条评论
为什么被折叠?



