CentOS 7.0下解决ifconfig: command not found的方法

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

 

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

 

 

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

yum install -y net-tools

 

安装完成后,可以直接使用ifconfig命令了  

 

 

posted @ 2019-04-05 18:39  Leo~Chan  阅读(2679)  评论(0编辑  收藏  举报