centos7 无 ifconfig

1. 现象: -bash: ifconfig: command not found

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

2. 解决

  1. centos7 默认或者最小化安装无ifconfig,只有 ip addr
  2. 安装: sudo yum -y install net-tools (需连外部网络)
    在这里插入图片描述
    在这里插入图片描述
  3. 再次执行命令:ifconfig 测试ok
    在这里插入图片描述
发布了142 篇原创文章 · 获赞 12 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/lqy971966/article/details/104915444
今日推荐