📌  相关文章
📜  如何在 ubuntu 中重新启动网络管理器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:35.298000             🧑  作者: Mango

代码示例3
Linux Network
#To Restart network
$ sudo /etc/init.d/networking restart

#To stop and start use the following option (do not run them over remote ssh session as you will get disconnected):
$ sudo /etc/init.d/networking stop
$ sudo /etc/init.d/networking start

#Debian/Ubuntu Linux with systemd, run:
$ sudo systemctl restart networking
           or 
$ sudo systemctl restart NetworkManager.service