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