Linux 提示:“bash: ifconfig: command not found”

不知道安装的是简化版本,以至于在 linux里 ifconfig 找到到 IP,也在网上找了各种办法,用了3、4个小时也没解决。

最终找到原因是没有安装 ifconfig

解决方案:

步骤1. 输入: yum provides ifconfig ,执行如下:

步骤2.输入: yum install net-tools,执行如下:

再执行: ifconfig -a, 成功找到IP。

猜你喜欢

转载自www.cnblogs.com/shanmu0737/p/8991094.html