Linux 报错 ifconfig command not found

1.Linux 中输入ifconfig命令报错:ifconfig command not found

有可能是没有安装ifconfig,如果没有,安装上去

 

2.查看是不是缺少了ifconfig,它是在/usr/sbin目录下的


root@localhost ~]# ll /usr/sbin

查看一下是否有 ifconfig

没有 ifconfig 的话安装
net-tools package

[root@localhost sbin]# sudo yum install net-tools

 

猜你喜欢

转载自www.cnblogs.com/xioawu-blog/p/10993633.html