189 8069 5689

安装Apache时可能会遇到的问题-创新互联

configure错误提示1:

创新互联公司是一家专注于成都网站制作、成都网站建设、外贸营销网站建设与策划设计,静乐网站建设哪家好?创新互联公司做网站,专注于网站建设10多年,网设计领域的专业建站公司;建站业务涵盖:静乐等地区。静乐做网站价格咨询:18982081108
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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前题目:安装Apache时可能会遇到的问题-创新互联
本文URL:http://cdxtjz.cn/article/jpioo.html

其他资讯