最近安装一台ubuntu 14.04 64位的机器,重启网卡遇到小挫折;
参考的网址是:http://blog.itechol.com/space-33-do-blog-id-7222.html
报如下信息:
问题1:
root@psz-dong-buntu:~# service networking restart
stop: Job failed while stopping
start: Job is already running: networking
问题2:
root@psz-dong-buntu:~# /etc/init.d/networking restart
root@psz-dong-buntu:~# /etc/init.d/networking stop
root@psz-dong-buntu:~# /etc/init.d/networking start
解決方法:
執行命令,如下两种都可以
root@psz-dong-ubuntu:~# sudo ifdown --exclude=lo -a && sudo ifup --exclude=lo -a
root@psz-dong-ubuntu:~# ifdown --exclude=lo -a && ifup --exclude=lo -a
转载于:https://blog.51cto.com/cyalias/1695752