linux 安装net工具 安装ifconfig工具

 

 

 

问题描述 
我是在VirtualBox上装的CentOS 7 Minimal,网上搜了一下原因,可能是CentOS 7的最小化安装少了一些工具,比如 ifconfig 及 netstat 等。因此解决办法很简单,把它们安装上就好了。

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

没有 ifconfig 的话安装 net-tools package
[root@localhost sbin]# sudo yum install net-tools
1


参考: 
1. CentOS 7 下 ifconfig command not found 解决办法 
2. linux - ifconfig command not found - Stack Overflow
--------------------- 
作者:Dandelion_drq 
来源:CSDN 
原文:https://blog.csdn.net/dandelion_drq/article/details/53503487 
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(linux 安装net工具 安装ifconfig工具)