在CentOS7.0中输入ifconfig命令会遇到-bash

CentOS7.0中输入ifconfig命令会遇到-bash: ifconfig: command not found。

直接执行以下命令安装:

yum install -y net-tools

在CentOS最小安装时是没有附带ifconfig,我们进入sbin目录下可以查看到ifconfig命令是没有安装的

因此这个时候我们只要安装net-tool插件,此插件中带有ipconfig命令

posted @ 2022-04-01 23:18  爱吃柠檬鱼  阅读(104)  评论(1)    收藏  举报