centos7 迷你安裝 無 ifconfig,netstat 的安裝

來源:互聯網
上載者:User

標籤:blog   http   io   os   ar   使用   for   sp   div   

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 kDownloading packages:net-tools-2.0-0.17.20131004git.el7.x86_64.rpm                                      | 304 kB  00:00:00     Running transaction checkRunning transaction testTransaction test succeededRunning 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 使用驗證即可;

 

centos7 迷你安裝 無 ifconfig,netstat 的安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.