linux window hosts的使用

hosts有什么作用

将域名映射到ip

如何使用

如图,

访问localhost会映射到127.0.0.1

访问www.cy.com会映射到192.168.1.12

路径

linux hosts路径

/etc/hosts

window hosts路径

C:\Windows\System32\drivers\etc\hosts

使用

猜你喜欢

转载自blog.csdn.net/qq_34874784/article/details/85855434