重启网络方法(通过杀死进程方式,达到网络重启)
zh@zh:~$sudo NetworkManager restart //查看进程id
NetworkManager 已正运行(pid 10254)
zh@zh:~$sudo kill 10254 //杀死进程
zh@zh:~$sudo NetworkManager restart
NetworkManager 已正运行(pid 10582)
重启网络方法(通过杀死进程方式,达到网络重启)
zh@zh:~$sudo NetworkManager restart //查看进程id
NetworkManager 已正运行(pid 10254)
zh@zh:~$sudo kill 10254 //杀死进程
zh@zh:~$sudo NetworkManager restart
NetworkManager 已正运行(pid 10582)