close
在centos下 安裝所需套件:
apache,libpng,libpng-devel,gd,gd-devel,libpcap
然後就可以來安裝bandwidthd
下載tarball版的bandwidthd
#tar zxvf bandwidthd*.tgz
#cd bandwidthd*
#make
#make install clean
#cd /usr/local/bandwidthd
#vi etc/bandwidthd.conf
(1) 把其中 subnet 的設定設好即可,
subnet 192.168.1.0 255.255.255.0
(2) 設定網卡代號
dev "eth0"
#./bandwidthd

#cd /var/www/html
#ln -s /usr/local/bandwidthd/htdocs/ bandwidthd
測試:
http://192.168.1.*/bandwidthd/

##Demo網頁
##http://bandwidthd.sourceforge.net/demo/





arrow
arrow
    全站熱搜
    創作者介紹
    創作者 里歐 的頭像
    里歐

    里歐's 布拉格

    里歐 發表在 痞客邦 留言(0) 人氣()