+370 5 205 5502 sales@monovm.com

How to Disable Network Manager in CentOS 7, 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.


Jun, 19

How to Disable Network Manager in CentOS 7

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.


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(Learn 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.


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.

user monovm


2020, Aug, 20

hello Thanks for this tutorial I think NM_CONTROLED=no should change to NM_CONTROLLED=no

user monovm

Susith Nonis

2020, Aug, 20

Hey! Thanks for the input Arash! We will change it ;)