qiaoer1993

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

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2022-02-08
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-07-07
  • 2022-01-09
猜你喜欢
  • 2021-11-19
  • 2021-08-05
  • 2022-01-22
  • 2021-10-01
  • 2021-10-01
  • 2021-10-01
  • 2021-11-29
相关资源
相似解决方案