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
首先判断一下是不是缺少了ifconfig,它是在/sbin目录下的
[root@localhost ~]# cd /sbin
查看一下是否有 ifconfig
[root@localhost sbin]# ls
没有 ifconfig 的话安装 net-tools package
[root@localhost sbin]# sudo yum install net-tools