输入sudo vi /etc/hosts并输入密码后回车出现:
E325: ATTENTION
Found a swap file by the name "/etc/.hosts.swp"
owned by: root dated: Thu Jul 17 16:22:59 2014
file name: /private/etc/hosts
modified: YES
user name: root host name: harimurasakiyudeMacBook-Air.local
process ID: 382
While opening file "/etc/hosts"
dated: Tue Mar 3 21:34:51 2015
E325: ATTENTION
Found a swap file by the name "/etc/.hosts.swp"
owned by: root dated: Thu Jul 17 16:22:59 2014
file name: /private/etc/hosts
modified: YES
user name: root host name: harimurasakiyudeMacBook-Air.local
process ID: 382
While opening file "/etc/hosts"
dated: Tue Mar 3 21:34:51 2015
NEWER than swap file!
……………………
我用的是Centos
打开终端输入:rm -f /etc/.hosts.swp