zoukankan      html  css  js  c++  java
  • centos7 最小化安装 无 ifconfig,netstat 的安装

    centos7 最小化安装 无 ifconfig,netstat 的安装

    centos7 最小化安装之后,默认是没有 ifconfig,netstat命令的;

    我们可以直接使用 yum -y install net-tools 即可;

    1. 先来看下 net-tools的信息

     yum info net-tools

    可安装的软件包
    名称    :net-tools
    架构    :x86_64
    版本    :2.0
    发布    :0.17.20131004git.el7
    大小    :304 k
    源    :base/7/x86_64
    简介    : Basic networking tools
    网址    :http://sourceforge.net/projects/net-tools/
    协议    : GPLv2+
    描述    : The net-tools package contains basic networking tools,
             : including ifconfig, netstat, route, and others.
             : Most of them are obsolete. For replacement check iproute package.
    

     在描述里面,可以清楚的看到 including ifconfig,netstat,route 等,没错,就是它,安装即可

    2. 安装net-tools ,需要管理员权限

     yum -y install net-tools

    安装  1 软件包
    
    总下载量:304 k
    安装大小:917 k
    Downloading packages:
    net-tools-2.0-0.17.20131004git.el7.x86_64.rpm                                      | 304 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : net-tools-2.0-0.17.20131004git.el7.x86_64                                             1/1 
      验证中      : net-tools-2.0-0.17.20131004git.el7.x86_64                                             1/1 
    
    已安装:
      net-tools.x86_64 0:2.0-0.17.20131004git.el7                                                             
    
    完毕!
    

    3: 验证命令

      安装完成之后,ifconfg,netstat 使用验证即可;

  • 相关阅读:
    数论模板
    acdream1116 Gao the string!(扩展KMP)
    后缀数组模板
    Codeforces446C DZY Loves Fibonacci Numbers(线段树 or 分块?)
    acdream1116 Gao the string!(hash二分 or 后缀数组)
    SPOJ375 Query on a tree(LCT边权)
    krpano HTML5 Viewer可以实现全景展示
    Chrome 前端 插件
    canvas 星空插件
    jQuery插件开发
  • 原文地址:https://www.cnblogs.com/cocoajin/p/4064547.html
Copyright © 2011-2022 走看看