设置网路ip等后 需要重启网路服务 vim /etc/host ’ debian: /etc/iinit.d/networking restart centos7: service network restart or systemctl start network.service