####下载bandwidthd源码包
wget http://www.rendoumi.com/soft/bandwidthd-2.0.1.tgz
####安装依赖
yum install libpcap-devel libpcap libpng-devel gd-devel libjpeg -y
####编译安装bandwidthd
tar -xvf bandwidthd-2.0.1.tgz
cd bandwidthd-2.0.1
./configure --prefix=/usr/local/
make && make install
####配置www站点 由于已经搭建了http服务,这里直接软链接至www根目录
ln -s /usr/local/bandwidthd/htdocs /var/www/html/bandwidthd
####修改配置文件
vim /usr/local/bandwidthd/etc/bandwidthd.conf
subnet 192.168.0.0/24
dev "any"
####启动bandwidthd
/usr/local/bandwidthd/bandwidthd
####访问 http://192.168.1.2/bandwidthd/index.html
评论区