修改host文件,并激活windows10host

一、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

 

来源:https://www.cnblogs.com/JasonChen92/p/9459427.html

posted @ 2019-12-24 16:03  乔儿  阅读(1540)  评论(0编辑  收藏  举报