CentOS7:ifconfig command not found解决-九五小庞

首先判断一下是不是缺少了ifconfig,它是在/sbin目录下的
[root@localhost ~]# cd /sbin

查看一下是否有 ifconfig
[root@localhost sbin]# ls
没有 ifconfig 的话安装 net-tools package
[root@localhost sbin]# sudo yum install net-tools
posted @ 2021-01-24 19:06  九五小庞  阅读(65)  评论(0编辑  收藏  举报