在FreeBSD底下安裝請直接使用Port,安裝後會在/usr/local建立一個bandwidthd的
目錄,請將bandwidthd.conf-dist複製成bandwidthd.conf並且修改內容,
(1)cd /usr/ports/net-mgmt/bandwidthd/
(2)make install
(3)mv /usr/local/bandwidthd/etc/bandwidthd.conf-dist /usr/local/bandwidthd/etc/bandwidthd.conf
(4)ee /usr/local/bandwidthd/etc/bandwidthd.conf
####################################################
# Bandwidthd.conf
#
# Commented out options are here to provide
# documentation and represent defaults
# Subnets to collect statistics on
#subnet 10.0.0.0 255.0.0.0
subnet 163.19.105.0 255.255.255.0 #你的區網
# Device to listen on
#dev "eth0"
dev "xl0" #你的網路介面卡
####################################################
cd /usr/local/etc/rc.d
mv bandwidthd.sh-sample bandwidthd.sh
然後執行/usr/local/etc/rc.d/bandwidthd.sh start
cd /var/www/html
ln -s /usr/local/bandwidthd/htdocs bandwidthd
再把 /usr/local/bandwidthd/htdocs link網頁伺服器能讀取到的地方
沒有留言:
張貼留言