发布网友 发布时间:2022-04-22 05:55
共2个回答
热心网友 时间:2022-05-26 16:10
1、输入【yumsearchifconfig】命令,查看ifconfig所属命令包是net-tools.x86_2、【yuminstallnet-tools.x86_】安装命令包,中途会询问“Isthisos[y/d/n]”,按y回车,Complete完成安装。3、输入【ifconfig】查看安装成果
热心网友 时间:2022-05-26 16:11
1.备份/etc/yum.repos.d/CentOS-Base.repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2.下载repo文件,放入/etc/yum.repos.d/(操作前请做好相应备份)wget /.help/CentOS7-Base-163.repomv CentOS7-Base-163.repo /etc/yum.repos.d/3.运行以下命令生成缓存yum clean allyum makecache