網絡流量查看(需要安裝工具)


1、查看總流量,可以安裝工具iproute,

[root@localhost ~]# yum install -y iproute

Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
epel

---------------------------------------------------------

省略部分安裝過程

--------------------------------------------------------

iproute.x86_64 0:4.11.0-30.el7

完畢!

利用命令查看ip -s -h link

2、查看實時網速,可以使用iptraf-ng

iptraf-ng未默認安裝,需要安裝

[root@localhost ~]# yum install -y iptraf-ng
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com

----------------------------------------------------------------------

省略部分安裝數據

-----------------------------------------------------------------------


已安裝:
iptraf-ng.x86_64 0:1.1.4-7.el7

完畢!

安裝完成可以使用命令iptraf-ng -g

[root@localhost ~]# iptraf-ng -g

 3、dstat 是一個全能系統信息統計工具,支持數據實時刷新,輸出直觀易懂。dstat 默認沒有安裝,需要安裝。

[root@localhost ~]# yum install -y dstat
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com

-----------------------------------------------------------------

省略部分安裝數據

-----------------------------------------------------------------

已安裝:
dstat.noarch 0:0.7.2-12.el7

完畢!

現在可用命令查看dstat -tnf 1 10 輸出接下來10秒內每秒的網絡數據:

 4、iftop 是一款實時流量監控工具,可以查看每個連接的實時速率。先進性安裝,進行查看。

[root@localhost ~]# yum install -y iftop
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com

------------------------------------------------------------------

省略部分安裝數據

-----------------------------------------------------------------

已安裝:
iftop.x86_64 0:1.0-0.21.pre4.el7

完畢!

[root@localhost ~]# iftop -nN -i ens32   #使用此命令進行流量監控

 

 還有其他的方法,可以參考一下百度。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM