1.系統:centos7.5
2.# cd httpd-2.4.10
3.# ./configure
報錯:
checking for APR… no
configure: error: APR not found. Please read the documentation.
解決:
# yum install -y apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs
# ./configure
4.# make
5.# make install
6.# /usr/local/apache2/bin/apachectl start
到此,http的源碼編譯完成。
7.報錯:
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
解決:
# vim /usr/local/apache2/conf/httpd.conf添加ServerName localhost:80