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

Centos7 system cannot use yum command

王林
Release: 2020-03-16 14:56:58
Original
4636 people have browsed it

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!

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