編碼的世界 / 優質文選 / 感情

centos7 開啟 關閉 NetworkManager


2022年7月28日
-   

開啟 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的狀態文件

熱門文章