Home > Article > Operation and Maintenance > Centos7 system cannot use yum command
Cause:
The network card failed to start with the operating system.
Solution:
1. Open the terminal and switch to the root account (ordinary accounts usually do not have permission to modify network configuration files, so you need to switch to the root account)
2 , switch to the directory of the network card configuration file
(Recommended tutorial: centos usage tutorial)
3. Find the configuration file of the network card (centos7 has modified the naming rules of the network card, It is no longer the familiar eth0, but ifcfg-eno (a string of numbers), for example, mine is ifcfg-eno16777736
4. Use the vi command to open this file
5. For the onboot option in the last line, change the default no to yes
6. Use the command:x to save and exit
Related Video tutorial recommendation: linux video tutorial
The above is the detailed content of Centos7 system cannot use yum command. For more information, please follow other related articles on the PHP Chinese website!