各系统hosts文件位置

Operating System Version(s) Location
UnixUnix-likePOSIX   /etc/hosts[3]
Microsoft Windows 3.1 %WinDir%\HOSTS
9598ME %WinDir%\hosts[4]
NT2000XP,[5] 2003Vista,
200872012810
%SystemRoot%\System32\drivers\etc\hosts[6]
Windows MobileWindows Phone   Registry key under HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
Apple Macintosh 9 and earlier Preferences or System folder
Mac OS X 10.0–10.1.5[7] (Added through NetInfo or niload)
Mac OS X 10.2 and newer /etc/hosts (a symbolic link to /private/etc/hosts)[7]
Novell NetWare   SYS:etc\hosts
OS/2 & eComStation   "bootdrive":\mptn\etc\
Symbian Symbian OS 6.1–9.0 C:\system\data\hosts
Symbian OS 9.1+ C:\private\10000882\hosts
MorphOS NetStack ENVARC:sys/net/hosts
AmigaOS < 4 AmiTCP:db/hosts
4 DEVS:Internet/hosts
AROS   ENVARC:AROSTCP/db/hosts
Android   /etc/hosts (a symbolic link to /system/etc/hosts)
iOS iOS 2.0 and newer /etc/hosts (a symbolic link to /private/etc/hosts)
TOPS-20   <SYSTEM>HOSTS.TXT
Plan 9   /lib/ndb/hosts
BeOS   /boot/beos/etc/hosts[8]
Haiku   /boot/common/settings/network/hosts[8]
OpenVMS UCX UCX$HOST
TCPware TCPIP$HOST
RISC OS 3.7, 5 !Boot.Resources.!Internet.files.Hosts
later boot sequence !Boot.Choices.Hardware.Disabled.Internet.Files.Hosts[9]

猜你喜欢

转载自blog.csdn.net/coderder/article/details/79928441