安装apache
1、下载apache httpd, https://httpd.apache.org/
2、编译apache httpd
[code language=”language=”bash"”]
"./configure" \
"–enable-so" \
"–with-mpm=prefork" \
"–prefix=/usr/local/apache2" \
"–enable-ssl" \
make && make install
[/code]
这过程中可能会缺少各种依赖,都可以用yum install的方式安装。比如,提示缺少apr,就执行yum install apr-devel。