標籤: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 的安裝