Apache安裝時錯誤解析

來源:互聯網
上載者:User

標籤: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安裝時錯誤解析

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.