2011年5月6日 星期五

流量監控BandWidthD 2.0.1(極推薦)

流量監控BandWidthD 2.0.1(極推薦)
比較不消耗資源

http://bandwidthd.sourceforge.net/
BandWidthD 2.0.1

資料來源
http://forum.icst.org.tw/phpbb/viewtopic.php?t=14951

程式
-------------------------------

sudo apt-get -y --force-yes install  apache2  bandwidthd

sudo touch /etc/apache2/conf.d/bandwidthd.conf
sudo chmod  666   /etc/apache2/conf.d/bandwidthd.conf

sudo echo "Alias /bandwidthd /var/lib/bandwidthd/htdocs"  >  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "<Location /bandwidthd>"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "    Order deny,allow"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo sudo echo "#    Deny from all"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "    Allow from 127.0.0.1"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "    Allow from ::1"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "    # Allow from .example.com"  >>  /etc/apache2/conf.d/bandwidthd.conf
sudo echo "</Location>"  >>  /etc/apache2/conf.d/bandwidthd.conf

sudo /etc/init.d/bandwidthd restart
sudo /etc/init.d/apache2 restart
#chkconfig httpd on

firefox http://localhost/bandwidthd &

沒有留言:

張貼留言