重启网络服务的命令是什么

尝试了 sudo /etc/init.d/networking

提示: Calling a sysvinit script on a system using upstart isn’t supported. Please use the ‘service’ command instead. 求帮助

Make sure that it’s clear to the user that they shouldn’t use this

script under upstart

if init_is_upstart; then
echo “ERROR: Calling a sysvinit script on a system using upstart isn’t supported. Please use the ‘service’ command instead.”
exit 1
fi

没找到简便方法,坑。
试了注销,然后登录貌似可以,jion。

直接 sudo service network-manager restart即可。

不知道LZ是想达到什么效果?

我试了tab键 network-manager没有自动提示出来 以为没有了呢:o

用这个可以看到服务状态

试试sudo service networking restart,这个貌似可以。