Apache環境
localhost:82
問題:
瀏覽器輸入localhost:82,沒有響應(昨天還一切正常),但是127.0.0.1:82可以訪問
情況:
1.錯誤記錄檔如下
apache error.log
httpd.conf 紅筆是我所更改過的地方
hosts檔案如下
# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost127.0.0.1 localhostlocalhost 127.0.0.1#0.0.0.1 mssplus.mcafee.com0.0.0.1 mssplus.mcafee.com
回複內容:
Apache環境
localhost:82
問題:
瀏覽器輸入localhost:82,沒有響應(昨天還一切正常),但是127.0.0.1:82可以訪問
情況:
1.錯誤記錄檔如下
apache error.log
httpd.conf 紅筆是我所更改過的地方
hosts檔案如下
# Copyright (c) 1993-2009 Microsoft Corp.## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.## This file contains the mappings of IP addresses to host names. Each# entry should be kept on an individual line. The IP address should# be placed in the first column followed by the corresponding host name.# The IP address and the host name should be separated by at least one# space.## Additionally, comments (such as these) may be inserted on individual# lines or following the machine name denoted by a '#' symbol.## For example:## 102.54.94.97 rhino.acme.com # source server# 38.25.63.10 x.acme.com # x client host# localhost name resolution is handled within DNS itself.# 127.0.0.1 localhost# ::1 localhost127.0.0.1 localhostlocalhost 127.0.0.1#0.0.0.1 mssplus.mcafee.com0.0.0.1 mssplus.mcafee.com
1:檢查一下連接埠是不是正常監聽狀態。是不是apache環境問題。
2:看看phpinfo()能不能執行。 看看是不是php執行環境問題。
3:看看代碼是不是裡面有死迴圈或者bug。display_error開啟看看。
4:樓主,起碼貼個代碼或者頁面什麼啊。。這樣定位問題捉瞎狀態啊。囧
在httpd.conf檔案末尾加上
AcceptFilter http none
AcceptFilter https none
然後重啟看看
網上百度出來的結果不知道準不準
http://www.oschina.NET/questi...
http://httpd.apache.org/docs/...。
從錯誤記錄檔來看是ServerName綁定失敗, 所以httpd也還沒有正確啟動
根據錯誤資訊google, 找到的是這個, 先嘗試下吧
http://www.t086.com/code/apac...
如果還有問題, 嘗試修改ServerName?
1.把你的hosts檔案貼出來。
2.試試訪問127.0.0.1:82
感謝大家的熱心協助,我卸載了重新裝了一個,可以運行了