![为什么 NetworkManager 处于禁用状态?](https://linux22.com/image/776466/%E4%B8%BA%E4%BB%80%E4%B9%88%20NetworkManager%20%E5%A4%84%E4%BA%8E%E7%A6%81%E7%94%A8%E7%8A%B6%E6%80%81%EF%BC%9F.png)
ubuntu 20.04 服务器主机
获取 nmcli 状态时告诉我原因
nmcli general
我明白了
STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
disconnected unknown enabled enabled enabled enabled
同时,NetworkManager.service服务本身也成功启动。日志中唯一的错误是:
network manager error failed to open.run/network/ifstate
确实没有这样的文件:
total 16
drwxr-xr-x 2 4096 Apr 11 14:34 if-down.d
drwxr-xr-x 2 4096 Apr 11 14:34 if-post-down.d
drwxr-xr-x 2 4096 Apr 11 14:34 if-pre-up.d
drwxr-xr-x 2 4096 Apr 11 14:34 if-up.d
但是在另一台主机上,状态为--已连接,也没有这样的文件......
因此,当我跑步时
nmcli connection show
我得到的是空的输出!