Ubuntu:sudo /etc/init.d/networking restart other:service network restart 转载于:https://my.oschina.net/sniperLi/blog/490233