To disable Network Manager on Debian 8 or later:
$ sudo systemctl stop NetworkManager.service
$ sudo systemctl disable NetworkManager.service
To disable Network Manager on Debian 7 or earlier:
$ sudo etc init.d network-manager stop
$ sudo update-rc.d network-manager remove
To disable Network Manager on Ubuntu or Linux Mint:
$ sudo stop network-manager
$ echo "manual" | sudo tee etc init/network-manager.override
After disabling Network Manager on Debian or Ubuntu, use etc network/interfaces to configure network interfaces.
To disable Network Manager on Fedora or CentOS/RHEL 7 or later:
$ sudo systemctl stop NetworkManager.service
$ sudo systemctl disable NetworkManager.service
To disable Network Manager on CentOS/RHEL 6 or earlier:
$ sudo service NetworkManager stop
$ sudo chkconfig NetworkManager off
After disabling Network Manager on Fedora or CentOS, use etc sysconfig/network-scripts/ifcfg-ethX files to configure network interfaces.
After rebooting, verify that Network Manager is successfully disabled for eth1.
$ nmcli dev status
原文:
http://xmodulo.com/disable-network-manager-linux.html
[
本帖最后由 linda 于 2016-10-25 11:51 编辑 ]