给localhost加一个域名

在C:\Windows\System32\drivers\etc目录下有个文件:

hosts 打开后如此加上:

 localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost
 127.0.0.1 www.kangkang.com

 

就ok了

posted @ 2016-06-01 09:08  yangAL  阅读(507)  评论(0编辑  收藏  举报