版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Dandelion_drq/article/details/53503487 </div>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
<div id="content_views" class="markdown_views">
<!-- flowchart 箭头图标 勿删 -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
<p><strong>问题描述</strong> <br>
我是在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
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Dandelion_drq/article/details/53503487 </div>
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-f57960eb32.css">
<div id="content_views" class="markdown_views">
<!-- flowchart 箭头图标 勿删 -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
<p><strong>问题描述</strong> <br>