1.进入host文件位置:
cd /etc/
2.编辑hosts文件:
vi /etc/hosts
3.修改方式类似windows
4.重启系统
reboot
5.访问ping www.xxx.com,能正常ping通。
Linux下如何修改host文件
阅读 63
2022-03-12
1.进入host文件位置:
cd /etc/
2.编辑hosts文件:
vi /etc/hosts
3.修改方式类似windows
4.重启系统
reboot
5.访问ping www.xxx.com,能正常ping通。
相关推荐
精彩评论(0)