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 使用验证即可;

  • 相关阅读:
    # ConfigureAwait常见问题解答
    # Oracle 常用语句
    # C# 中的Task创建指南
    ASP.NET Core Web API 跨域(CORS) Cookie问题
    Order by 优化
    VMware 安装 CentOS 7
    ThreadLocal 内存泄漏问题深入分析
    Zookeeper 如何保证分布式系统数据一致性
    Redis 5.0 安装
    Redisson 实现分布式锁的原理分析
  • 原文地址:https://www.cnblogs.com/cocoajin/p/4064547.html
Copyright © 2011-2022 走看看