Centos缺少ifconfig命令

问题:

新装的最简版centos7,执行ifconfig,提示没有该命令

步骤:

1、配置好yum源

2、执行如下命令:

yum install net-tools.x86_64, 中途会询问“Is this os [y/d/n]”,按y回车,Complete完成安装。

 备注:这里已经安装成功了

3、输入ifconfig, 命令运行正常

原文地址:https://www.cnblogs.com/yaohuimo/p/12307028.html