鎴戠幇鍦ㄧ殑鐞嗚В鏄痩ocalhost鏄?27.0.0.1鐨勪竴涓埆鍚嶏紝涓よ呮槸閫氳繃C:\WINDOWS\system32\drivers\etc\hosts(鍦ㄦ鍋囧畾緋葷粺鐩樹負C鐩?榪欎釜鏂囦歡鏉ュ搴旇搗鏉ョ殑銆傜敤璁頒簨鏈墦寮榪欎釜鏂囦歡錛屽唴瀹瑰涓嬶細
# 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.1 localhost
鍦ㄨ繖涓枃浠剁殑鏈鍚庝竴琛屽啓鏄庝簡127.0.0.1涓巐ocalhost鐨勫搴斿叧緋伙紝鎴戜滑涓嶉槻鏉ュ仛涓疄楠岋紝鍦ㄨ繖涓枃浠舵渶鍚庡姞涓嬮潰涓琛岋細
127.0.0.1 happy
淇濆瓨涔嬪悗錛屽啀鎵撳紑鍛戒護琛岋紝ping happy,浣犱細鍙戠幇錛岀幇鍦╤appy涔熷彲浠ing 閫氫簡錛岀敱姝ゅ彲鐭ocalhost鍙槸澶у綰﹀畾鐨勪唬琛?27.0.0.1鐨勪竴涓埆鍚嶏紝濡傛灉浣犲枩嬈紝浣犲彲浠ラ氳繃涓婇潰榪欑鏂瑰紡涓?27.0.0.1閰嶇疆涓嶅悓鐨勫埆鍚嶃?

]]>