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的安装目录:(视个人安装情况而不同) [[email protected] conf]# cd /usr/local/apache/conf
 
2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80

Apache安装时错误解析

转载于:https://blog.51cto.com/asd9577/1940506

相关文章:

  • 2021-12-23
  • 2021-06-04
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-05-18
  • 2022-01-03
  • 2021-10-10
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案