使用yum search ifconfig
命令搜索12345678[root@rocketmq-nameserver2 bin]# yum search ifconfigLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.njupt.edu.cn * extras: mirrors.bfsu.edu.cn * updates: mirrors.njupt.edu.cn============================================== Matched: ifconfig ===============================================net-tools.x86_64 : Basic networking tools
得到需要安装net-tools包
使用命令yum install net-tools
安装