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

2026-02-17 03:10:40

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命令的解决方法

猜你喜欢