Home >Operation and Maintenance >CentOS >What to do if CentOS network connection fails

What to do if CentOS network connection fails

angryTom
angryTomOriginal
2020-03-18 18:15:464745browse

What to do if CentOS network connection fails

What to do if CentOS network connection fails

It may be related to the NetworkManager package that comes with the network card, just close it.

systemctl stop NetworkManager
systemctl disable NetworkManager #(设置设置NetworkManager服务开机不启动)
service network restart

On CentOS systems, there are currently two network management tools: NetworkManager and network. If both are configured, conflicts will occur, and NetworkManager will clear the routes when the network is disconnected. If some customized routes are not added to the NetworkManager configuration file, the routes will be cleared and need to be customized after the network is connected. Add it.

The current version of NetworkManager on CentOS is relatively low and is more suitable for systems with desktop environments, so just keep the network service on the server, close NetworkManager, and prohibit startup.

This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of What to do if CentOS network connection fails. 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