版本是cent os7
你这可能是未安装 ifconfig 命令 可以用 yum
执行 yum search ifconfig //看最后一行 ifconfig 命令的包名,
再执行 yum install net-tools.x86_64