Redhat安裝iftop

來源:互聯網
上載者:User

發現團隊的一台Linux主機在某一天突然走了20G流量!!!
聽說iftop這個工具不錯,決定給伺服器裝一個。
1.  iftop 至少需要兩個包
        libpcap(抓包用)
        ncurses(顯示用,比如著名的"clear"命令就在這個包中)
2. 原始碼
    http://www.tcpdump.org/
    http://ftp.gnu.org/pub/gnu/ncurses/
    然後  ./configure  -->  make  --> make install
3. 最後到http://www.ex-parrot.com/~pdw/iftop/
    下載iftop,同樣是安裝三部曲。
可能碰到的問題:
 checking POSIX threads usability… configure: error: it fails.  We probably guessed the wrong CFLAGS.
      很可能是找不到libpcap.so檔案,到/usr/lib下面,發現有libpcap.so.0  libpcap.so.0.9.5
      證明是有這個版本的,但是不被識別,做個軟串連  ln -s libpcap.so.9.5 libpcap.so
      就OK啦!而且換版本也是很方便的。


作者 wpjsolo

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.