당신의 호스트 파일을 편집 및 변경 로컬 호스트가된다 "1"또는 당신이 1/file.php.Do 다음 단계로 루트 디렉토리의 파일에 액세스 할 수 원하는대로
내 컴퓨터> C : (또는 윈도우에 어떤 드라이브)> WINDOWS> system32를> 드라이버> 등> 호스트
참고 : 내 컴퓨터가 어디 있는지 확실하지 아니면 그냥 키보드를 사용하려면 바로 가기를 열면 키보드의 Windows 키를 누른 채로 "E"키를 누를 수 있습니다.
HOSTS 파일을 마우스 오른쪽 단추로 클릭하고 열기를 클릭하십시오. 무엇을 열 것인지 묻는 창이 나타납니다. 메모장을 찾아 선택하고 확인을 클릭하십시오.
# Copyright (c) 1993-1999 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
127.0.0 : 당신이 전에 HOSTS 파일을 편집 한 적이 없다면
이는 어떻게 보일지입니다.1 로컬 호스트
변경 로컬 호스트 1
당신이 http://1/file.php
-1. localhost를 1로 변경하지 마십시오. EXPECT localhost alias가 작동하는 많은 Windows 프로그램이 망가질 것입니다. 대신 127.0.0.1을 새 별칭에 매핑하는 줄을 추가해야합니다. –