码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS下ifconfig出现“command not found”

时间:2018-03-18 16:25:12      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:CentOS   ifconfig   

ifconfig命令提示“command not found”,推测是安装的时候选择了最小安装造成的。

  1. 查看/sbin目录下是否存在ifconfig:
    ls /sbin
    发现不存在ifconfig
  2. 修改网卡配置:
    vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
    onboot=no改为onboot=yes
  3. 安装net-tools package:
    yum install net-tools
  4. 安装完之后,发现ifconfig命令能够执行了。

CentOS下ifconfig出现“command not found”

标签:CentOS   ifconfig   

原文地址:http://blog.51cto.com/heyww/2088157

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!