[root@localhost ~]# ifconfig
-bash: ifconfig: command not found

 

输入ip addr 确认IP地址是否设置正常,设置好如下所示,如果没有获取到IP地址则设置一个即可。

centos7 (ifconfig不能使用)   -bash: ifconfig: command not found

 

确认ifconfig命令是否未安装 

ls /sbin|grep ifconfig

 

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

sudo yum install net-tools

 

等待安装完成,再次输入ifconfig,成功。 

 centos7 (ifconfig不能使用)   -bash: ifconfig: command not found

 

相关文章:

  • 2021-12-23
  • 2021-04-29
  • 2021-10-06
  • 2022-12-23
  • 2021-08-13
  • 2021-11-19
猜你喜欢
  • 2021-04-25
  • 2021-05-15
  • 2021-08-17
  • 2022-12-23
  • 2021-04-15
  • 2021-08-14
  • 2021-06-11
相关资源
相似解决方案