设置windows网络连接别名和linux网络连接别名
windows网络连接别名
C:\Windows\System32\drivers\etc目录下的hosts文件中添加
127.0.0.1 localhost 192.168.1.100 proxy.zj.chinamobile.com
linux网络连接别名
/etc/hosts
# Do not remove the following line, or various programs # that require network functionality will fail. 192.168.1.100 test1 192.168.1.101 test2
设置好以后,可以绕过域名解析,直接用域名访问相应IP的网站了。
扫描公众号,关注更多信息
---------------------------------------------------------------------------------我是分割线--------------------------------------------------------------------------to be a better me, talk is cheap show me the code
版权所有,转载请注明原文链接。
文中有不妥或者错误的地方还望指出,以免误人子弟。如果觉得本文对你有所帮助不妨【推荐】一下!如果你有更好的建议,可以给我留言讨论,共同进步!
再次感谢您耐心的读完本篇文章。
----------------------------------------------------------------------------------------------------------------------------------------------------------------------