2014年12月15日 星期一

freebsd with bandwidthd

1. cd /usr/ports/www/apache24
    make BATCH=yes install clean

2.cd /usr/ports/net-mgmt/bandwidthd
    make BATCH=yes install clean

3.ee /usr/local/etc/apache24/httpd.conf

LISTEN 8008

DocumentRoot "/usr/local/bandwidthd/htdocs"


4.mv /usr/local/etc/rc.d/bandwidthd.sh.sample /usr/local/etc/rc.d/bandwidthd
ee /usr/local/bandwidthd/etc/bandwidthd.conf

subnet 172.16.0.0/18

dev "bge1"

5.ee /etc/rc.conf
apache24_enable="YES"

6./usr/local/etc/rc.d/apache24 start
    /usr/local/etc/rc.d/bandwidthd start

沒有留言: