Home >Operation and Maintenance >CentOS >What to do if the yum command cannot be used in centos7 system

What to do if the yum command cannot be used in centos7 system

王林
王林Original
2020-03-26 13:57:133619browse

What to do if the yum command cannot be used in centos7 system

1. Use vi editor to modify the network card file

vi /etc/sysconfig/network-scripts/ifcfg-ens33

(Recommended tutorial: centos tutorial)

What to do if the yum command cannot be used in centos7 system

2. Modify ONBOOT=no to yes

3. Restart the network card

service network restart

4. Re-execute the yum command.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What to do if the yum command cannot be used in centos7 system. 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