This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is not compatible with some 3rd party software, such as cPanel, and must be disabled prior to installing the conflicting programs.
The following guide requires root user access.
Disable Network Manager
To disable the Network Manager in CentOS 7, perform the following steps:
- From the command line, login as root user.
- Run the commands:
systemctl stop NetworkManager systemctl disable NetworkManager
- Change to the
/etc/sysconfig/network-scripts
directory:cd /etc/sysconfig/network-scripts
- Open the
ifcfg-eth0
andifcfg-lo
files with your preferred text editor and, if they exist, set the following keys' values:
NM_CONTROLLED=no ONBOOT=yes
- Run the following commands to restart the network:
systemctl enable network.service systemctl start network.service
Network Manager is now disabled and the network restarted.
Uninstall Network Manager
To uninstall the Network Manager, perform the following steps:
- From the command line, login as root user.
- Run the command:
yum remove NetworkManager -y
Network Manager has now been removed from your CentOS 7 server.
RELATED: Disable Network Manager in CentOS 6
RELATED: Disable Network Manager in CentOS 8