nload實時查看linux服務器網絡流量

nload實時查看linux服務器網絡流量 2012-04-20 10:40:57
分類: LINUX
如果你僅僅是想查詢當前服務器的帶寬,nload絕對是個很好用的一個工具,功能雖然很單一,但是很強.雖然不能像iptraf那樣,可針對IP,協議等條件來查詢,可以實時地監控網卡的流量,分輸入流量Incoming 和輸出流量Outgoing兩部分,同時統計當前,平均,最小,最大,總流量的值,並且用動態圖形方式表現出來,讓你一目瞭然.
補充:
nload默認分爲上下兩塊:上半部分是:Incoming也就是進入網卡的流量,下半部分是:Outgoing,也就是從這塊網卡出去的流量,每部分都 有當前流量(Curr),平均流量(Avg),最小流量(Min),最大流量(Max),總和流量(Ttl)這幾個部分,看起來還是蠻直觀的。
另外,你也可以自己定義流量數值顯示的單位 #/usr/local/nload/bin/nload –help
就可以看到具體的相關參數了。
效果請見文章最後面.
nload官網及下載 http://www.roland-riegel.de/nload/
http://www.roland-riegel.de/nload/nload-0.7.2.tar.gz
 
nload安裝方法:

 
  1. wget http://www.roland-riegel.de/nload/nload-0.7.2.tar.gz
  2. tar zxvf nload-0.7.2.tar.gz
  3. cd nload-0.7.2
  4. ./configure
  5. make
  6. make install
這樣就安裝好了,
直接輸入nload回車即可看到動態流量信息,也可以指定網卡,如nload eth1
還可以指定是以K或M來顯示流量,如nload -u M顯示的流量是以MB爲單位的.
執行命令:nload
  1. Device eth0 [74.125.71.17] (1/4):
  2. =============================================================
  3. Incoming:
  4. Curr: 1.44 MBit/s
  5. Avg: 1.20 MBit/s
  6. Min: 0.67 kBit/s
  7. .... . .. . . Max: 2.20 MBit/s
  8. ||##################||###############|||######## Ttl: 1.26 GByte
  9. Outgoing:
  10. . ################## ########|.######## #######
  11. # ################## ##################|#######
  12. # ################## ##########################
  13. #|################## |##########################
  14. #################### ###########################
  15. #################### ###########################
  16. #################### ########################### Curr: 12.92 MBit/s
  17. ################################################ Avg: 11.80 MBit/s
  18. ################################################ Min: 3.25 MBit/s
  19. ################################################ Max: 15.20 MBit/s
  20. ################################################ Ttl: 2.81 GByte
我遠程安裝了兩臺服務器,第一臺完全正常,第二臺服務器在執行./configure 編譯的時候,出現了下邊兩個報錯:
1. ./configure時報錯:configure: error: C++ compiler cannot create executables
有組件沒有安裝,執行命令:
yum install gcc gcc-c++ gcc-g77
繼續執行./configure  ,不料又報一下錯誤
2.configure: error: ncurses library or development files not found. ncurses is required for nload.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
yum install -y ncurses-devel
 即可解決
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章