安装Apache时可能会遇到的问题
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
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。