11.7 Apache安装
1. 安装httpd apr apr-util
wget http://mirrors.shu.edu.cn/apache/httpd/httpd-2.4.33.tar.gz
wget http://mirrors.shu.edu.cn/apache/apr/apr-1.6.3.tar.gz
wget http://mirrors.shu.edu.cn/apache/apr/apr-util-1.6.1.tar.gz
2. 解压文件
tar -zvxf httpd-2.4.33.tar.gz
tar -zvxf apr-util-1.6.1.tar.gz
tar -zvxf apr-1.6.3.tar.gz
3. ./configure --prefix=/usr/local/apr //apr安装路径
make && make install //安装apr
4. 安装apr-util
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr //需要指定apr安装路径
make && make install //安装apr-util
4. 安装httpd
./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-so --enable-modes-shared=most //指定apr和apr-util路径 支持动态扩展 加载模块most
make && make install //安装httpd
5. /usr/local/apache/bin/apachectl start //启动服务
/usr/local/apache/bin/apachectl -M //查看模块