configure错误提示1:

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.

解决方法:

yum install -y gcc



configure错误提示2:

checkingwhethertoenablemod_deflate...configure:error:mod_deflatehasbeenrequestedbutcannotbebuiltduetoprerequisitefailures

解决方法:

yum install -y zlib-devel



make前为了防止报错可先安装一些库文件:

yuminstall-ypcrepcre-develaprapr-devel



启动Apache错误提示:

httpd:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname,using180.168.41.175forServerName

解决方法:

vim/usr/local/apache2/conf/httpd.confServerNamewww.example.com:80//去掉前面的注释符#如下ServerNamewww.example.com:80