CentOS7安装ifconfig

来源:互联网 发布:手机版windows系统 编辑:程序博客网 时间:2024/06/06 08:30

centos7 mini最小安装模式是没有带上ifconfig命令的,所以我们需要手动安装
如果你没时间,直接在命令行敲入:yum -y install net-tools.x86_64即可


下面是安装步骤:

1、 判断ifconfig是否已经安装

终端输入:ifconfig
返回:command not found

2、 搜索安装包

yum search ifconfig

3、 安装

yum -y install net-tools.x86_64

-y 是对所有提问都回答YES

4、 验证

终端输入:ifconfig –a
返回所有网卡信息

0 0