重启网络方法(通过杀死进程方式,达到网络重启)
[email protected]:~$sudo NetworkManager restart //查看进程id
NetworkManager 已正运行(pid 10254)
[email protected]:~$sudo kill 10254 //杀死进程
[email protected]:~$sudo NetworkManager restart
NetworkManager 已正运行(pid 10582)
原文地址:https://www.cnblogs.com/onelikeone/p/8428446.html
时间: 2024-10-01 15:09:19