Home  >  Article  >  Operation and Maintenance  >  How to solve the problem that the yum command cannot be used under centos7

How to solve the problem that the yum command cannot be used under centos7

王林
王林Original
2020-03-30 11:54:413265browse

How to solve the problem that the yum command cannot be used under centos7

Problem:

yum install xxx error is reported as follows:

How to solve the problem that the yum command cannot be used under centos7

Cause:

Network card Failed to boot with the operating system.

(Recommended tutorial: centos tutorial)

Solution:

1. Open the file directory:

cd /etc/sysconfig/network-scripts

2. Find File: ifcfg-ens33

3. Find ONBOOT=no and change it to yes.

As shown in the figure:

How to solve the problem that the yum command cannot be used under centos7

4. Finally, restart the client.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to solve the problem that the yum command cannot be used under centos7. 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