美文网首页
CentOS7下输入ifconfig显示command not

CentOS7下输入ifconfig显示command not

作者: 爱简讯 | 来源:发表于2022-03-18 16:31 被阅读0次

情况描述:

Centos7下输入ifconfig命令,显示:command not found

输入:ip add 

结果:ip地址显示正常

处理方法:

查看ifconfig命令是否安装

[root@localhost ~]# cd /sbin/        进入sbin目录下

[root@localhost sbin]# ls        罗列出该目录下是否有ifconfig命令

安装net-tool插件,此插件中带有此命令

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

安装完成后,重新输入ifconfig命令即可

相关文章

网友评论

      本文标题:CentOS7下输入ifconfig显示command not

      本文链接:https://www.haomeiwen.com/subject/qttwdrtx.html