执行

sudo gedit /etc/hosts

添加内容后重启网络

sudo /etc/init.d/networking restart