Home > Operation and Maintenance > CentOS > What should I do if I cannot use the yum command under centos7?

What should I do if I cannot use the yum command under centos7?

王林
Release: 2020-03-31 15:47:58
Original
3201 people have browsed it

What should I do if I cannot use the yum command under centos7?

Enter the configuration file directory

cd /etc/sysconfig/network-scripts
Copy after login

View the directory file

ls
Copy after login

(Recommended tutorial: centos tutorial)

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

What should I do if I cannot use the yum command under centos7?

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

vi ifcfg-ens33
Copy after login

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.

What should I do if I cannot use the yum command under centos7?

Restart the system

reboot
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What should I do if I cannot use the yum command under centos7?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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