Enter the configuration file directory
cd /etc/sysconfig/network-scripts
View the directory file
ls
(Recommended tutorial: centos tutorial)
Find the network card configuration file "ifcfg-ens33" and edit this file
Find the network card configuration file "ifcfg-ens33" and edit this file
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.
Restart the system
reboot
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!