[problem help] 如何重启网络服务?
Tofloor
poster avatar
风过无痕迹
deepin
2024-08-25 12:17
Author

我修改了/etc/hosts文件,请教:需要重启网络服务让其立即生效吗?如果是,该如何重启网络服务?

Reply Favorite View the author
All Replies
WangZhongyun
deepin
2024-08-25 12:32
#1

重启电脑就会重启网络服务吧

Reply View the author
erdospj
deepin
2024-08-25 20:29
#2

sudo /etc/init.d/nscd restart
注:如果没有nscd可以安装。sudo apt install nscd

Reply View the author
shalling
Deepin Wiki Editor
2024-08-26 16:06
#3

nmcli networking off && nmcli networking on

Reply View the author