-bash:ifconfig:command not found报错解决方法


问题:执行 ifconfig报错

Centos 修改network-scripts中的内容后,想使用ifconfig查看目前IP地址的修改情况,报出这个错误:

-bash:ifconfig:command not found报错解决方法
因为系统没有安装net-tools

解决方案:

  1. 使用sudo yum install net-tools(若当前用户是root用户 不加sudo也可)命令安装net-tools即可

-bash:ifconfig:command not found报错解决方法

  1. 后面的就根据提示输入y 即可,出现 Complete! 就安装完成了.

-bash:ifconfig:command not found报错解决方法
-bash:ifconfig:command not found报错解决方法

测试:

-bash:ifconfig:command not found报错解决方法
问题解决

相关文章:

  • 2022-12-23
  • 2021-05-14
  • 2022-01-30
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2021-09-19
猜你喜欢
  • 2021-07-24
  • 2021-08-13
  • 2021-12-10
  • 2021-08-15
  • 2021-07-16
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案