遇到报错问题解决集锦

ifconfig出现查无此命令

思路:
查看是不是因为环境变量

[root@localhost sh]# ls /sbin/ifconfig
ls: 无法访问/sbin/ifconfig: 没有那个文件或目录

出现上面这个就是软件没有安装

解决方法:
查看ifconfg是哪个软件包的命令

[root@localhost sh]# ls /sbin/ifconfig
ls: 无法访问/sbin/ifconfig: 没有那个文件或目录
[root@localhost sh]# yum search ifconfig
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
====================== 匹配:ifconfig ======================
net-tools.x86_64 : Basic networking tools

安装这个软件包

[root@localhost sh]# yum install net-tools.*

猜你喜欢

转载自blog.csdn.net/weixin_47768822/article/details/109464898
今日推荐