CentOS7下输入ifconfig显示command not

2022-03-18  本文已影响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命令即可

上一篇 下一篇

猜你喜欢

热点阅读