最近在电脑的虚拟机中安装了Ubuntu,需要重新启动网络:
命令:sudo /etc/init.d/networking restart
转:https://www.cnblogs.com/marcus/archive/2009/09/21/1571350.html