Home >Operation and Maintenance >CentOS >Centos7 system cannot use yum command

Centos7 system cannot use yum command

王林
王林Original
2020-03-16 14:56:584640browse

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

Centos7 system cannot use yum command

5. For the onboot option in the last line, change the default no to yes

Centos7 system cannot use yum command

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!

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