开启 NetworkManager 

cat <<EOF >/etc/NetworkManager/nm-system-settings.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
EOF
systemctl start NetworkManager 
systemctl enable NetworkManager

关闭 NetworkManager 

systemctl stop NetworkManager 
systemctl disable NetworkManager 
rm -rf /var/lib/NetworkManager/NetworkManager.state /etc/NetworkManager/nm-system-settings.conf
reboot

/etc/NetworkManager/nm-system-settings.conf 是NetworkManager的配置文件

/etc/NetworkManager/nm-system-settings.conf 是NetworkManager的状态文件

Logo

一站式虚拟内容创作平台,激发创意,赋能创作,进入R空间,遇见同道,让优质作品闪耀发光。​

更多推荐