Modify the hosts file
vim /etc/hosts
Commands effective after modification
/etc/init.d/network restart # 重启网络 or /etc/init.d/net.eth0 restart # 这个就是重启网卡了
# 重启网络命令 $sudo /etc/init.d/networking restart