在CentOS7.0中输入ifconfig命令会遇到-bash: ifconfig: command not found。

CentOS 7.0下解决ifconfig: command not found的方法

 

在CentOS最小安装时是没有附带ifconfig,我们进入sbin目录下可以查看到ifconfig命令是没有安装的

 CentOS 7.0下解决ifconfig: command not found的方法

CentOS 7.0下解决ifconfig: command not found的方法

 

因此这个时候我们只要安装net-tool插件,此插件中带有ipconfig命令

yum install -y net-tools

CentOS 7.0下解决ifconfig: command not found的方法

 

安装完成后,可以直接使用ifconfig命令了  

 CentOS 7.0下解决ifconfig: command not found的方法

 

相关文章:

  • 2022-12-23
  • 2021-10-07
  • 2021-12-17
猜你喜欢
  • 2022-01-22
  • 2022-02-21
  • 2021-04-25
  • 2021-11-03
  • 2021-08-20
  • 2021-11-28
相关资源
相似解决方案