linux中ifconfig command not found解决方案:
ifconfig command not found
-
1、查看环境变量中是否有usr/local/sbin目录
echo $PATH
image.png -
2、有的话查找ifconfig命令需要安装什么
yum search ifconfig
image.png -
3、安装需要的工具包
yum install net-tools.x86_64
image.png
备注:遇到判断直接输入【y】即可
-
4、执行ifconfig命令
ifconfig
image.png
【感谢关注【纯码农】(pureCodeFarmer)你一关注我写的忒带劲了,感谢老铁关注,666】