CentOS7:ifconfig command not found解决 左手的ㄟ右手 2022-04-14 21:13 160阅读 0赞 ### Questions ### 使用`docker`基础镜像`centos`的时候,期望使用`ifconfig`命令查询本地ip地址时,报错如下`ifconfig command not found`. ### Solution ### * 首先判断一下是不是缺少了ifconfig,它是在/sbin目录下的 [root@localhost ~]# cd /sbin [root@localhost sbin]# ls * 查看一下是否有 ifconfig。 没有 ifconfig 的话安装 net-tools package [root@localhost sbin]# sudo yum install net-tools -------------------- ### Reference ### \[1\]. [CentOS7:ifconfig command not found解决][CentOS7_ifconfig command not found] [CentOS7_ifconfig command not found]: https://blog.csdn.net/dandelion_drq/article/details/53503487
还没有评论,来说两句吧...