日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

Apache启动时报Could not reliably determine the server's fully qualified domain name

發(fā)布時間:2023/11/27 生活经验 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Apache启动时报Could not reliably determine the server's fully qualified domain name 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

在系統(tǒng)啟動時apache,沒有啟動起來,查看“事件查看器”發(fā)現(xiàn)報一些錯誤:

The Apache service named? reported the following error:
>>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.200 for ServerName??

回頭,查看apache日志logs/error.log,發(fā)現(xiàn)報的是類似的錯誤。

都是說Could not reliably determine the server's fully qualified domain name。

我先分析了下,似乎是apache啟動時可能會查詢DNS來驗證ServerName的配置。可是我用的是私有IP的,這怎么配置?

抱著疑問的態(tài)度,我又查看 httpd.conf 文件,查找關于ServerName配置的片段,我忽然發(fā)現(xiàn),人家已經(jīng)在注釋中把這個問題說的很詳細,可是我在開始的配置中卻忽視了他。

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerNamewww.web8cn.com:80

所以嘛,你如果是在本地電腦上開發(fā),可以這樣寫:

ServerName 127.0.0.1:80

?

重新啟動apache查看日志無再報錯,問題解決了。

?

這是我又回過頭好好想想我安裝apache時的步驟。

我發(fā)現(xiàn)開始安裝的時候,如果它會讓你填寫類似 域名和主機名的信息。

如果你是正式部署可以寫正確的域名,如果只是開發(fā)用的是私有IP的話可以寫自己的私有IP。

轉(zhuǎn)載于:https://www.cnblogs.com/58top/archive/2012/05/03/2479987.html

總結

以上是生活随笔為你收集整理的Apache启动时报Could not reliably determine the server's fully qualified domain name的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。