最近安裝一臺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