常用的各平台 hosts 文件位置

来源:互联网 发布:流量软件安全吗 编辑:程序博客网 时间:2024/06/06 02:15

常用的各平台 hosts 文件位置

Windows:%SystemRoot%\System32\drivers\etc\hosts
Android:/etc/hosts(指向/system/etc/hosts的符号链接)
iOS:/etc/hosts(指向/private/etc/hosts的符号链接)
Mac OS X 10.0–10.1.5:通过NetInfo或niload设置
Mac OS X 10.2和更新版本:/etc/hosts(指向/private/etc/hosts的符号链接)
Unix、类Unix系统(例如Linux等):/etc/hosts
Windows Mobile、Windows Phone:注册表项HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
Symbian OS 6.1–9.0:C:\system\data\hosts
Symbian OS 9.1+:C:\private\10000882\hosts

更详细的位置介绍

https://github.com/racaljk/hosts/wiki/%E5%90%84%E5%B9%B3%E5%8F%B0-hosts-%E6%96%87%E4%BB%B6%E4%BD%8D%E7%BD%AE

总结起来就是

Windows:%SystemRoot%\System32\drivers\etc\hosts
Unix、类Unix系统(例如Linux等):/etc/hosts

Windows这个渣渣,位置放得这么深!

0 0
原创粉丝点击