[筆記] FreeBSD 設定上的相關問題...

| 有 0 篇回應文章 | 被引用了 0 次
問題:
更新 port tree 之後,安裝 port 出現下列的錯誤訊息:
X11BASE is now deprecated.  Unset X11BASE in make.conf and try again.
*** Error code 1

Stop.
解決方法:
/etc/make.conf 中加入下列一行:
X11BASE=${LOCALBASE}

參考網站:http://forums.freebsd.org/showthread.php?t=13030


問題:
在 private network 中的機器,執行 apachectl start 後,沒有錯誤訊息,但 httpd 沒有起來。查看 /var/log/httpd-error.log 看到下面的錯誤訊息:
[Sat Jun 05 00:20:46 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "host.name.and.domain"
Configuration Failed
其中 host.name.and.domain 是 host 的 domain name。

解決方法:
原因是 httpd 找不到該 domain name 的 IP。在 /etc/hosts 中加入下列兩行:
10.1.1.203              host.name.and.domain host
10.1.1.203              host.name.and.domain.
記得將 10.1.1.203 代換成這台機器的虛擬 IP。


問題:
啟動 Apache2.x 時都會出現錯誤訊息 :Failed to enable the 'httpready' Accept Filter

解決方法:
原因是沒有安裝 accf_http 這個 kernel module。手動動態安裝的方法是在 shell 中鍵入以下指令:
> kldload accf_http
再 restart apache 即可。若要開機時自動載入,請在 /boot/loader.conf 加入下面這行:
accf_http_load="YES"

參考資料:

此文章所屬分類:

沒有人引用這篇文章

本篇文章的引用網址:http://www.cclo.idv.tw/cgi-bin/mtos_4.1/mt-tb.cgi/483

留下您的意見

關於這位部落客

  • closer
  • 被人叫大叔的年紀。
  • 滿地撿得到的資訊工程師。
  • 喜歡酒精、搖滾樂、電影、電玩、漫畫、電腦、棒球、拍照、女孩子。
  • 討厭薑、青椒、芋頭、政客、煙味、キャプテン翼、張學友。
  • 會中文、英文、日文、客家話、河洛話、C 語言。

活動支援

關於這篇文章

這篇文章是 closerJune 7, 2010 1:29 PM 發表的。

前一篇文章:《新年快樂!

後一篇文章:《在 64-bit 的 Linux 中,用 32-bit 的 gcc 產生 32-bit 的 binary…

回到本站首頁,或是檢視所有的文章彙整列表

Powered by Movable Type 4.1