溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

安裝Apache時可能會遇到的問題

發布時間:2020-07-05 21:22:25 來源:網絡 閱讀:467 作者:M四月天 欄目:web開發


configure錯誤提示1:

configure:error: in `/usr/local/src/httpd-2.2.21/srclib/apr':
configure:error: no acceptable C compiler found in $PATH
See `config.log'for more details.

解決方法:

yum install -y gcc 



configure錯誤提示2:

checking whether to enable mod_deflate... configure: 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



啟動Apache錯誤提示:

httpd: Could not reliably determine the server's fully qualified domain name, using 180.16                8.41.175 for ServerName

解決方法:

vim /usr/local/apache2/conf/httpd.conf

ServerName www.example.com:80   //去掉前面的注釋符#  如下
ServerName www.example.com:80






向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女