hosts绑定域名
1、打开“我的电脑”或“计算机”;2、进入“C:\Windows\System32\drivers\etc”目录;
3、找到文件名为 host 的文件,打开;(记事本打开)
4、往内容的末尾追加内容;
例如:官网的IP是182.16.3.130,即追加:182.16.3.130 www.lavaone.com
(间隔空白部分可以是空格键,或 Tab 键)
如下图所示:
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
# ::1 localhost
182.16.3.130 www.lavaone.com
页:
[1]