Centos缺少ifconfig命令

问题:

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

步骤:

1、配置好yum源

2、执行如下命令:

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

 

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

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

 

posted @ 2020-02-14 12:59  yaohuimo  阅读(235)  评论(0编辑  收藏  举报