Home  >  Article  >  Operation and Maintenance  >  Failed to execute yum command under centos7

Failed to execute yum command under centos7

王林
王林Original
2020-04-03 09:25:331650browse

Failed to execute yum command under centos7

Problem:

When executing the yum command, an error message appears as shown in the figure:

Failed to execute yum command under centos7

Solution:

Enter the configuration file directory

cd /etc/sysconfig/network-scripts

View the directory file

ls

Find the network card configuration file "ifcfg-ens33" and edit this file

Failed to execute yum command under centos7

vi ifcfg-ens33

Enter i to switch to insert mode, find the ONBOOT item, and change its parameter from NO to YES esc:wq Save changes and exit.

Failed to execute yum command under centos7

Restart the system

reboot

Recommended related tutorials: centos tutorial

The above is the detailed content of Failed to execute yum command 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