win/mac绑定host

win电脑

1.打开本地C盘(安装系统盘)

2.一次进入Windows-》System32-》drivers-》etc,找到hosts

3.使用记事本打开hosts文件,最后添加

127.0.0.1 localhost

4.添加成功后,重新打开hosts文件确保第3步有保存


mac电脑

1.打开Finder应用

2.快捷键Shift+Command+G,输入/etc/hosts

3.双击打开文件添加host,最后添加一行

127.0.0.1 localhost



猜你喜欢

转载自blog.csdn.net/u010433315/article/details/80072343