zoukankan      html  css  js  c++  java
  • 最小化安装CentOS7,没有ifconfig命令---yum search command_name搜索未知包名

    新安装的CentOS7系统,想查询ip的时候,发现没有ifconfig这个命令:

    -bash: ifconfig: 未找到命令
    

     yum安装:

    没有可用软件包 ifconfig
    

    既然知道命令,搜索一下命令来源:

    # yum search ifconfig
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.btte.net
     * extras: mirrors.aliyun.com
     * updates: ftp.sjtu.edu.cn
    ======================================================== 匹配:ifconfig ========================================================
    net-tools.x86_64 : Basic networking tools
    

     找到包就好了:

    # yum install -y net-tools.x86_64
    

    这样可以用ifconfig命令了!

  • 相关阅读:
    初识数据库与SQL语句
    初始面向对象
    集合与深浅copy
    函数进阶
    函数操作
    文件操作
    生成器与列表生成式
    函数名的本质,闭包和迭代
    小数据库
    DAY 5 字典
  • 原文地址:https://www.cnblogs.com/llius/p/5114426.html
Copyright © 2011-2022 走看看