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

 

posted @ 2014-10-31 11:04  cocoajin  阅读(22737)  评论(0编辑  收藏  举报