English
+370 5 205 5502 sales@monovm.com

Network Manager, although at times useful, will prevent the installation of certain applications in CentOS. In this article, we will show you how to disable it.

12

Jun, 19

How to 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.

  • First, log in to Centos server using an SSH connection.

  • Enter the following commands to stop network manager and remove it from Linux vps server startup.

    systemctl stop NetworkManager.service
    systemctl disable NetworkManager.service

  • Then enter the following directory:

    cd /etc/sysconfig/network-scripts

  • Use ls command to list all files in this directory and find out your network adapter name.

ls

for example, our network adaptor name is “eno2656”, therefore we use the VI editor to open this file.

VI eno2656

Note: you can also use “nano” editor to open this file.

Once in the editor, you can see the network adaptor configuration. Add the following line at the bottom and save the file.

NM_CONTROLED=no

please note: you should enter the command as same as you see (including upper and lower case letters).

  • Now enter the following command to start 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.
    In the end, you can remove the network manager service with below command:
    yum remove NetworkManager

Oliver K

I’m Oliver k. I have MS degree in Computer Engineering. For nearly 5 years that I have been working on web programing and also in last 2 years I have worked on windows and Linux VPS. This is my honor to share my experiences with a new community.