Last active
December 19, 2018 07:09
-
-
Save asimzeeshan/60cd6accaae4c7b66a446e6abb96693d to your computer and use it in GitHub Desktop.
Disable NetworkManager for CentOS 7 (for cPanel DNSOnly)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ========================================================== | |
# Instructions from https://documentation.cpanel.net/display/CKB/How+to+Disable+Network+Manager | |
# ========================================================== | |
systemctl stop NetworkManager.service | |
systemctl disable NetworkManager.service | |
echo "NM_CONTROLLED=no" > /etc/sysconfig/network-scripts/ifcfg-eth0 | |
systemctl enable network.service | |
systemctl start network.service | |
yum remove NetworkManager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment