关于centos没有ifconfig命令的解决方法

2024-10-25 17:29:22

1、首先修改网络配置

关于centos没有ifconfig命令的解决方法

2、配置yum源将里面原有的文件放在新创建的backup文件夹下,创建centosYum.repo文件

关于centos没有ifconfig命令的解决方法

3、搜索ifconfig命令在哪个工具包内,经搜索,是net-tools.x86_64文件夹内

关于centos没有ifconfig命令的解决方法

4、执行yum install net-tools.x86_64命令,因为我已经安装过所以提示nothing to do

关于centos没有ifconfig命令的解决方法

5、验证

关于centos没有ifconfig命令的解决方法
猜你喜欢