安装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:

checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

解决方法:

yum install -y zlib-devel

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

yum install -y pcre pcre-devel apr apr-devel

启动Apache错误提示:

httpd: Could not reliably determine the server's fully qualified domain name, using 180.16                8.41.175 for ServerName

解决方法:

vim /usr/local/apache2/conf/httpd.conf

ServerName www.example.com:80   //去掉前面的注释符#  如下
ServerName www.example.com:80


网页标题:安装Apache时可能会遇到的问题
文章起源:http://bzwzjz.com/article/jepdos.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站制作 成都定制网站建设 成都网站建设 高端网站设计推广 成都网站设计 成都响应式网站建设 成都网站设计 成都网站制作公司 教育网站设计方案 网站建设公司 成都营销网站建设 企业网站建设 企业网站设计 成都商城网站建设 商城网站建设 重庆网站建设 成都网站制作 泸州网站建设 成都网站制作 重庆网站建设 成都网站建设 定制级高端网站建设