OS:CentOS 5.5
Requirement:
Apache
libpcap libpcap-devel
libpng libpng-devel
gd gd-devel
bandwidthd
1. 安裝相依套件
yum install httpd
/etc/init.d/httpd restart
chkconfig httpd on
yum install libpcap libpcap-devel libpng libpng-devel gd gd-devel
2. 下載安裝BandwidthD
wget http://sourceforge.net/projects/bandwidthd/files/bandwidthd/bandwidthd%202.0.1/bandwidthd-2.0.1.tgz/download
tar -zxvf bandwidthd-2.0.1.tgz
cd bandwidthd-2.0.1
./configure
make
make install
3. 配置BandwidthD監控哪一網段(or 介面)
vi /usr/local/bandwidthd/etc/bandwidthd.conf
subnet 192.168.44.0/24
4. 啟動BandwidthD deamon
/usr/local/bandwidthd/bandwidthd
5. 建置BandwidthD網站目錄
cd /var/www/html
ln -s /usr/local/bandwidthd/htdocs/ bandwidthd
6. 完成,測試
http://your server IP/bandwidthd
參考文章:
http://bandwidthd.sourceforge.net/
http://blog.yam.com/wishdeen/article/27213731
http://kkbruce.blogspot.com/2008/08/bandwidthdip.html
沒有留言:
張貼留言