不知道安装的是简化版本,以至于在 linux里 ifconfig 找到到 IP,也在网上找了各种办法,用了3、4个小时也没解决。
最终找到原因是没有安装 ifconfig
解决方案:
步骤1. 输入: yum provides ifconfig ,执行如下:
步骤2.输入: yum install net-tools,执行如下:
再执行: ifconfig -a, 成功找到IP。
不知道安装的是简化版本,以至于在 linux里 ifconfig 找到到 IP,也在网上找了各种办法,用了3、4个小时也没解决。
最终找到原因是没有安装 ifconfig
解决方案:
步骤1. 输入: yum provides ifconfig ,执行如下:
步骤2.输入: yum install net-tools,执行如下:
再执行: ifconfig -a, 成功找到IP。