Hosts文件的位置是 %SystemRoot%\system32\drivers\etc\ 。实际位置是定义在注册表里面的\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath
%SystemRoot%是C:\windows。
在不同的操作系统中位置是不同的,具体见http://en.wikipedia.org/wiki/Hosts_file
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14999074/viewspace-607127/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14999074/viewspace-607127/