侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

Apache安装时错误解析

2023-11-04 星期六 / 0 评论 / 0 点赞 / 30 阅读 / 1374 字

1.error: mod_deflate has been requested but can not be built due to prerequisite failures 解决办法是: yum

1.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

2.APACHE安装error: cannot install 'libaprutil-1.la' to a directory not ending in***

猜测可能是以前安装用过./configure 来直接安装到/usr/local/apache2
导致安装文件已经不太“干净”

解决办法是:
第一种方法:①删除source code目录,重新tar -zxvf下载的apache安装包

第二种方法:②运行#make clean 去解决!

3.APACHE启动错误 httpd: Could not reliably determine the server's fully qualified domain name
解决办法是:

1)进入apache的安装目录:(视个人安装情况而不同) [root@zhdy-02 conf]# cd /usr/local/apache/conf 2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80

广告 广告

评论区