Problem:
yum install xxx error is reported as follows:
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
2. Find File: ifcfg-ens33
3. Find ONBOOT=no and change it to yes.
As shown in the figure:
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!