最小化没有安装ifconfig,所以用不了。需要用yum安装下net-tools包。 yum install net-tools 转载于:https://www.cnblogs.com/rslai/p/9065576.html