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

What to do if the centos7 system network is unstable

王林
Release: 2020-03-26 11:30:38
Original
5156 people have browsed it

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 ~]#
Copy after login

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

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

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template