Home > Operation and Maintenance > CentOS > 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

王林
Release: 2020-03-30 11:54:41
Original
3305 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template