configure錯誤提示1:apache
configure:error: in `/usr/local/src/httpd-2.2.21/srclib/apr':
configure:error: no acceptable C compiler found in $PATH
See `config.log'for more details.
解決方法:vim
yum install -y gcc
configure錯誤提示2:dom
checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
解決方法:ide
yum install -y zlib-devel
make前爲了防止報錯可先安裝一些庫文件:ui
yum install -y pcre pcre-devel apr apr-devel
啓動Apache錯誤提示:spa
httpd: Could not reliably determine the server's fully qualified domain name, using 180.16 8.41.175 for ServerName
解決方法:server
vim /usr/local/apache2/conf/httpd.conf ServerName www.example.com:80 //去掉前面的註釋符# 以下 ServerName www.example.com:80