1.window7修改本地hosts文件
# window7系统hosts文件位置
C:\Windows\System32\drivers\etc
2.linux
# linux系统hosts文件位置
[root@localhost etc]# cat /etc/hosts
# window7系统hosts文件位置
C:\Windows\System32\drivers\etc
# linux系统hosts文件位置
[root@localhost etc]# cat /etc/hosts