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/
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/


全站熱搜