1. 程式人生 > >ubuntu 重啟命令,ubuntu 重啟網絡卡方法

ubuntu 重啟命令,ubuntu 重啟網絡卡方法

ubuntu 重啟命令

重啟命令:
1、reboot
2、shutdown -r now 立刻重啟(root使用者使用)
3、shutdown -r 10 過10分鐘自動重啟(root使用者使用)
4、shutdown -r 20:35 在時間為20:35時候重啟(root使用者使用)
如果是通過shutdown命令設定重啟的話,可以用shutdown -c命令取消重啟

關機命令:
1、halt 立刻關機
2、poweroff 立刻關機
3、shutdown -h now 立刻關機(root使用者使用)
4、shutdown -h 10 10分鐘後自動關機

如果是通過shutdown命令設定關機的話,可以用shutdown -c命令取消重啟

ubuntu 重啟網絡卡方法

檢視網絡卡資訊: ifconfig

設定一個網絡卡IP:ifconfig eth1 192.168.1.10 netmask 255.255.255.0

重啟網絡卡使設定生效:sudo /etc/init.d/networking restart

用ubuntu的系統——>系統管理——>網路的網路設定

關閉網絡卡 ifdown eth0

開啟網絡卡 ifup eth0

重啟網絡卡,優點是可以指定網絡卡,不影響其他網路介面