標籤:apache安裝時錯誤解析
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
650) this.width=650;" src="https://s1.51cto.com/wyfs02/M02/99/94/wKiom1lJ7cuCsiQhAACTo0D_qlc026.png" title="20170621110228.png" alt="wKiom1lJ7cuCsiQhAACTo0D_qlc026.png" />
本文出自 “老七Linux營運管理” 部落格,請務必保留此出處http://asd9577.blog.51cto.com/4291946/1940506
Apache安裝時錯誤解析