httpd4.2.10源碼編譯

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章