将本地端口映射子域名

比如:localhost:8701 => niu.totocat.cn:8701

一、修改 host 文件

路径:

C:\Windows\System32\drivers\etc



路径如图:
在这里插入图片描述
修改:
在这里插入图片描述

二、执行命令

重置 dns

Ipconfig /flushdns
  • 1

在这里插入图片描述

 

猜你喜欢

转载自www.cnblogs.com/yixiaoyang-/p/12968923.html