Home  >  Article  >  Operation and Maintenance  >  What to do if the centos7 system network is unstable

What to do if the centos7 system network is unstable

王林
王林Original
2020-03-26 11:30:385150browse

What to do if the centos7 system network is unstable

Reason:

Fundamentally speaking, it is a conflict caused by NetworkMaganager (NM), which can be solved by disabling NetworkManager.

The solution is as follows:

(Recommended tutorial: centos tutorial)

1. Switch to the root account and use the chkconfig command to view both network and NetworkManager The startup configuration of each service;

[wzb@embedded ~]$ su - root
口令:
[root@embedded ~]# chkconfig –list network
network 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
[root@embedded ~]# chkconfig –list NetworkManager
NetworkManager 0:关闭 1:关闭 2:关闭 3:启用 4:关闭 5:关闭 6:关闭
[root@embedded ~]#

2. Disable NetworkManager and prevent it from starting when the computer starts:

[root@embedded ~]# chkconfig –level123456 NetworkManager off

3. Enable the network service and start it when the computer starts. In user mode 3, 4, and 5;

[root@embedded ~]# chkconfig –level345 network on

Or add a line at the end by editing the vi /etc/rc.d/rc.local file: /etc/init.d/network start

[root@embedded ~]# vi /etc/rc.d/rc.local

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What to do if the centos7 system network is unstable. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn