編譯安裝iftop

1、當用yum無法安裝iftop的時候,會出現如下圖的顯示,這個時候我們可以用編譯安裝的方法來安裝iftop。
編譯安裝iftop

2、首先安裝iftop所需的軟件包
yum install -y flex byacc libpcap ncurses-devel libpcap-devel

3、創建目錄,用來存放iftop的tar包,並且下載、配置、安裝
[root@xietangsheng ~]# mkdir /iftop
[root@xietangsheng ~]# cd /iftop
[root@xietangsheng~]#wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz

[root@xietangsheng /iftop]# ls
iftop-1.0pre4.tar.gz
[root@xietangsheng /iftop]# tar zxf iftop-1.0pre4.tar.gz
[root@xietangsheng /iftop]# cd iftop-1.0pre4/
[root@xietangsheng /iftop/iftop-1.0pre4]# ./configure
[root@xietangsheng /iftop/iftop-1.0pre4]# make&&make install

4、測試iftop是否安裝成功
編譯安裝iftop

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章