修改Windows10的host文件。

一、Windows10中host地址。

c:\windows\system32\drivers\etc\hosts

其他系统中的位置。

  • Windows操作系统(Windows XP/7/8/10): C:\windows\system32\drivers\etc\hosts
  • Linux(Redhat, CentOS, Debian, Ubuntu等): /ets/hosts
  • Android: /system/etc/hosts
  • Mac OS X: /private/etc

二、widows下修改完需要在cmd中用命令刷新缓存记录。

ipconfig /flushdns

参考:修改hosts文件启用自定义域名访问测试服务器上的网站  

  如何在hosts文件添加自己想要解析的网站?及修改hosts的作用

  HOW TO EDIT LOCAL HOST FOR TESTING WEB SITES

posted @ 2018-08-12 10:39  JasonChen92  阅读(806)  评论(0编辑  收藏  举报