centos7编译安装apache过程
1、下载apache最新版本
2、安装apache
gzip -d httpd-2.4.29.tar.gz
tar -xvf httpd-2.4.29.tar
cd httpd-2.4.29
./configure –prefix=/usr/share/apache –with-apr=/usr/share/bin/apr-1-config –with-apr-util=/usr/share/apr-util –with-pcre=/usr/share/pcre
make
make install
3、配置
cd /usr/share/apache/conf
vi httpd.conf
搜索”#ServerName”,添加ServerName localhost:80
/usr/share/apache/bin/apachectl start
常见问题
apr安装