在Hos告如物防声矿ts文件中localhost指向的IP是127.0.0.1这个关系是可以修改的
win特dows修改localhost指向
打开C:\W来自INDOWS\syste冷m32\drivers360问答\etc\hosts文件,此文件可以用记事本打开打开如下:
#Co盟草划采缺逐倒陈协卷离pyright(c)1993-包聚率距训排妒1999MicrosoftCorp.
#
#ThisisasampleHOSTSfileusedbyMicrosoftTCP/IPforWindows.
#
#ThisfilecontainsthemappingsofIPaddressestohostnames.Each
#entryshouldbekeptonanindividuall距剂ine.TheIPa完怎旧钟束针耐们征ddressshould
#beplacedinthefirstcolumnfollowedbythecorrespondinghostname.
#TheIPaddressandthehostnameshouldbe据用底席光权回效日述separatedbyatleastone
#space.
#
#Additionally,comments(suchasthese)maybeinsertedonindividual
#linesorfollowingthemachinenamedenotedbya'#'symbol.
#
#Forexample:
#
#102.54.94.97(这里不让显示)#sourceserver
#38.25.63.10(这里不让显示)#xclienthost
127.0.0.1localhost
最下面的:127.0主染粮尼底.0.1 localhost,这两个参数你可以随意改。格式是IP空格域名