Home>Article>Operation and Maintenance> 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 tutorialcolumn, 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!