Linux——CentOS7没有ifconfig命令

前言

今天新安装的centos7,使用ifconfig命令却提示没有,直接安装也没有~

正文

直接安装直接告诉我这个包不是一个有效的

[root@kafka ~]# yum install -y ifconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package ifconfig available.
Error: Nothing to do

正确操作

[root@kafka ~]# yum install -y net-tools.x86_64

原文地址:https://www.cnblogs.com/wangyang0210/p/11459058.html