List of content you will read in this article:
Network manager is a service that runs in the background of the system. It allows users to easily set up new network connections. Its true usefulness can be seen when attempting to configure a wireless connection or a virtual private network (i.e. VPN).
There are, however, circumstances where this service needs to be disabled and today we will show you exactly how to do that.
Disable Network Manager in CentOS
In order to install some applications on CentOS 7 VPS Server, we have to disable the network manager. Consider that we want to install cPanel, unless the network manager has been disabled, an error will occur at the first step of installation.
Throughout this article, we will provide a step-by-step guide on how to make this and other installations possible. Let’s dive straight into it:
Step 2: Enter the following commands to stop the network manager and remove it from the Linux VPS server startup.
systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
Step 3: Then enter the following directory:
Step 4: Use the ls command to list all files in this directory and find out your network adapter name.
Step 5: Then, use an editor to open the file. For example, our network adaptor name is “eno2656”, therefore we use the VI editor to open this file.
Note: you can also use the “nano” editor to open this file.
Step 6: Once in the editor, you can see the network adaptor configuration. Add the following line at the bottom and save the file.
Please note: you should enter the command in the same way as you see above (including upper and lower case letters).
Step 7: Now, enter the following command to start the Linux default network service.
systemctl enable network.service
chkconfig network on
With these steps, you changed the network interface controller from network manager to Linux default network manager.
Optional Step: In the end, you can remove the network manager service with the following command:
yum remove NetworkManager
While for regular everyday use the network manager could bring a lot of convenience, for more server-related tasks, the service needs to be disabled. We hope that with the help of this short tutorial you were able to successfully disable the network manager. If you have any questions or suggestions, please leave them in the comment section below.