Skip to content

Instantly share code, notes, and snippets.

@asimzeeshan
Last active December 19, 2018 07:09
Show Gist options
  • Save asimzeeshan/60cd6accaae4c7b66a446e6abb96693d to your computer and use it in GitHub Desktop.
Save asimzeeshan/60cd6accaae4c7b66a446e6abb96693d to your computer and use it in GitHub Desktop.
Disable NetworkManager for CentOS 7 (for cPanel DNSOnly)
#!/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