Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

WBOY
풀어 주다: 2023-03-02 06:30:01
원래의
3461명이 탐색했습니다.

Apache 환경
localhost:82

질문:

  1. 브라우저가 localhost:82에 진입했는데 응답이 없지만(어제 모든 것이 정상이었습니다) 127.0.0.1:82에 액세스할 수 있습니다

상황:
1. 오류 로그는
apache error.log
Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

와 같습니다.
  1. httpd.conf 빨간펜은 제가 바꾼 곳입니다
    Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

  1. hosts 파일은 다음과 같습니다

<code># 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 localhost

127.0.0.1 localhost
localhost 127.0.0.1



#0.0.0.1 mssplus.mcafee.com


0.0.0.1    mssplus.mcafee.com
</code>
로그인 후 복사
로그인 후 복사

답글 내용:

Apache 환경
localhost:82

질문:

  1. 브라우저가 localhost:82에 진입했는데 응답이 없지만(어제 모든 것이 정상이었습니다) 127.0.0.1:82에 액세스할 수 있습니다

상황:
1. 오류 로그는
apache error.log
Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

와 같습니다.
  1. httpd.conf 빨간펜은 제가 바꾼 곳입니다
    Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

Apache 환경, localhost가 로딩 중인데 127.0.0.1은 정상적으로 접속이 가능합니다.

  1. hosts 파일은 다음과 같습니다

<code># 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 localhost

127.0.0.1 localhost
localhost 127.0.0.1



#0.0.0.1 mssplus.mcafee.com


0.0.0.1    mssplus.mcafee.com
</code>
로그인 후 복사
로그인 후 복사

1: 포트가 정상적인 수신 상태인지 확인합니다. 아파치 환경에 문제가 있는 걸까요?
2: phpinfo()가 실행될 수 있는지 확인하세요. PHP 실행 환경에 문제가 있는지 확인해보세요.
3: 코드에 무한 루프나 버그가 있는지 확인하세요. display_error를 열고 살펴보세요.
4: 원본 포스터에는 최소한 코드나 페이지 등을 게시하세요. . 문제를 찾는 이러한 방법은 맹목적인 상태를 포착합니다. ㅋㅋㅋ

httpd.conf 파일 끝에
AcceptFilter http none
AcceptFilter https none
을 추가한 다음 다시 시작하여

을 확인하세요.

바이두 결과가 정확한지는 모르겠습니다

http://www.oschina.NET/questi...
http://httpd.apache.org/docs/....

오류 로그를 보면 ServerName 바인딩에 실패하여 아직 httpd가 제대로 시작되지 않은 것으로 판단됩니다

구글의 오류 메시지에 따르면 이것을 찾았으니 먼저 시도해 보세요
http://www.t086.com/code/apac...

그래도 문제가 발생하면 서버 이름을 변경해 보세요.

1. hosts 파일을 게시하세요.
2. 127.0.0.1:82

에 방문해 보세요.

많은 도움을 주셔서 감사합니다. 제거하고 다시 설치했는데 작동됩니다.

관련 라벨:
php
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!