歡迎您光臨本站 註冊首頁

關於apache的問題。。

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

關於apache的問題。。

我把httpd.conf里的 servername改成了我的IP 但是 執行
sudo /usr/local/apache/bin/httpd

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

我已經保存了。並且能夠使用我的ip訪問index.html.
《解決方案》

原帖由 crisman 於 2008-8-23 16:22 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
我把httpd.conf里的 servername改成了我的IP 但是 執行
sudo /usr/local/apache/bin/httpd

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerN ...

是本機測試嗎?

用 別 的機器試試看!

不會 網路上 ip 有衝突?
《解決方案》

是本機測試。
還有我發現不能停止apache服務了。
執行 /usr/local/apache/bin/httpd  graceful-stop 和stop
都沒有回顯。而且刷新頁面還是正常顯示。服務並沒停止。
《解決方案》

原帖由 crisman 於 2008-8-23 16:35 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
是本機測試。
還有我發現不能停止apache服務了。
執行 /usr/local/apache/bin/httpd  graceful-stop 和stop
都沒有回顯。而且刷新頁面還是正常顯示。服務並沒停止。


實在不行,kill 吧!
《解決方案》

這條信息不影響服務的啟動,只要埠已開啟就可用 http://伺服器ip/index.html 訪問。
《解決方案》

記得源碼包應該是用 bin/apachetl start 啟動吧?
《解決方案》

那條信息是因為servername設置問題,啟動停止最好用apachetl控制
《解決方案》

停止httpd我喜歡pkill httpd

[火星人 ] 關於apache的問題。。已經有278次圍觀

http://coctec.com/docs/service/show-post-27999.html