测试过程中需绑定hosts。将测试环境IP绑定域名,输入域名即可连接到测试环境。

 

1  hosts文件地址:C:\WINDOWS\system32\drivers\etc

绑定hosts

 

2  用记事本打开hosts。【dinghanhua

  在最下面一行加上:测试ip  域名  #注释。保存。

绑定hosts

 

3 配置完成后,因为dns有缓存,所以需命令行清除dns缓存或者重启浏览器,输入admin.cn,即可打开测试环境

清除dns命令:cmd进入命令行,输入 ipconfig /flushdns。

绑定hosts

 

 绑定hosts

 

 

the end!

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
猜你喜欢
  • 2021-05-28
  • 2022-02-18
  • 2021-07-21
  • 2021-07-18
  • 2021-12-26
  • 2021-07-10
  • 2021-09-24
相关资源
相似解决方案