我正在使用 Ubuntu 12.04。
我的有线连接不起作用。我编辑了配置文件,然后使用以下命令重新启动了网络管理器:sudo /etc/init.d/network-manager restart
。连接已启动,但显示以下内容:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service network-manager restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop network-manager ; start network-manager. The restart(8) utility is also available.
为什么会这样?我该怎么办?
答案1
你不需要做任何事情。这条消息只是告诉你,有一种更新、更简单的方法可以完成你想做的事情:
sudo service network-manager restart
您还可以采取两步方法:
sudo service network-manager stop
sudo service network-manager start