网站首页 | 控制面板 | 短消息 | 搜索 | 会员 | 帮助 | 社区 | 首页 | 无图版


常州五颜六色网络技术有限公司 -> 技术文档 -> 关于mod_bwshare的定义 转到动态网页

--> 本页主题: 关于mod_bwshare的定义 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题
deserts


头衔:大客部大客部

级别: 总版主
精华: 0
发帖: 327
威望: 2 点
金钱: 605 RMB
贡献值: 0 点
在线时间:328(小时)
注册时间:2006-01-01
查看作者资料 发送短消息 发送邮件 推荐此帖 引用回复这个帖子


关于mod_bwshare的定义

BW_tx1cred_rate: sets the maximum rate of serving files (files/second).

BW_tx1debt_max: sets the maximum files to serve in excess of BW_tx1cred_rate (files).

BW_tx2cred_rate: sets the maximum rate of serving bytes (bytes/second).

BW_tx2debt_max: sets the maximum bytes to serve in excess of BW_tx2cred_rate (bytes).


常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-86605212 QQ:8732391   5y6s Inc.
[楼 主] Posted:2007-09-20 17:18| 顶端
deserts


头衔:大客部大客部

级别: 总版主
精华: 0
发帖: 327
威望: 2 点
金钱: 605 RMB
贡献值: 0 点
在线时间:328(小时)
注册时间:2006-01-01
查看作者资料 发送短消息 发送邮件 推荐此帖 引用回复这个帖子


http://modules.apache.org/search?id=899

mod_cband Version 0.9.6.1
for Apache 2.x License: GNU GPL
Last Updated January 22nd, 2006
A virtual host bandwidth-limiting module provided to solve the problem of limiting virtualhosts and users bandwidth usage
Requires
Module homepage at http://cband.linux.pl


常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-86605212 QQ:8732391   5y6s Inc.
[1 楼] Posted:2007-09-20 17:18| 顶端
deserts


头衔:大客部大客部

级别: 总版主
精华: 0
发帖: 327
威望: 2 点
金钱: 605 RMB
贡献值: 0 点
在线时间:328(小时)
注册时间:2006-01-01
查看作者资料 发送短消息 发送邮件 推荐此帖 引用回复这个帖子
mod_bwshare

mod_bwshare Version 0.2.0
for Apache 2.x License: Artistic License
Last Updated August 18th, 2006
Bandwidth throttling and monitoring per client IP address.
Requires
Module homepage at http://www.topology.org/src/bwshare/README.html



附件: mod_bwshare-0.2.0.zip (64 K) 下载次数:0

常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-86605212 QQ:8732391   5y6s Inc.
[2 楼] Posted:2007-09-20 17:19| 顶端
deserts


头衔:大客部大客部

级别: 总版主
精华: 0
发帖: 327
威望: 2 点
金钱: 605 RMB
贡献值: 0 点
在线时间:328(小时)
注册时间:2006-01-01
查看作者资料 发送短消息 发送邮件 推荐此帖 引用回复这个帖子
Installation of bwshare as a DSO module for Apache 2.

2005-11-22: To install bwshare as a DSO module for Apache 2 with all of the paths as in the default source settings, I do the following.
QUOTE:
moose /root# /usr/local/apache2/bin/apxs -c mod_bwshare.c
moose /root# /usr/local/apache2/bin/apxs -i mod_bwshare.la
moose /root# /usr/local/apache2/bin/apachectl restart

I had to add the following line to the httpd.conf file first.
QUOTE:
LoadModule bwshare_module modules/mod_bwshare.so

I also added this sort of thing in a file bwshare.conf which I included into the httpd.conf file before doing the apachectl restart command:
QUOTE:
<IfModule mod_bwshare.c>
  <Location /bwshare-info>
    SetHandler bwshare-info
  </Location>

  <Location /bwshare-trace>
    SetHandler bwshare-trace
  </Location>

  # Some bandwidth control parameters.
  <Directory />
  BW_tx1debt_max       25
  BW_tx1cred_rate       0.095
  BW_tx2debt_max       3000000
  BW_tx2cred_rate       2500
  </Directory>
</IfModule>

Here's a typical session:
QUOTE:
moose /root# /usr/local/apache2/bin/apxs -c mod_bwshare.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pthread
-I/usr/local/apache2/include -I/usr/local/apache2/include
-I/usr/local/apache2/include   -c -o mod_bwshare.lo mod_bwshare.c && touch
mod_bwshare.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_bwshare.la
-rpath /usr/local/apache2/modules -module -avoid-version   mod_bwshare.lo

moose /root# ls -l mod* .libs
-rw-r--r-- 1 root root 152562 Nov 15 22:39 mod_bwshare.c
-rw-r--r-- 1 root root   822 Nov 22 19:27 mod_bwshare.la
-rw-r--r-- 1 root root   324 Nov 22 19:27 mod_bwshare.lo
-rw-r--r-- 1 root root 123752 Nov 22 19:27 mod_bwshare.o
-rw-r--r-- 1 root root     0 Nov 22 19:27 mod_bwshare.slo

.libs:
total 337
drwxr-xr-x   2 root root   208 Nov 22 19:27 .
drwx------ 20 root root   944 Nov 22 19:27 ..
-rw-r--r--   1 root root 123904 Nov 22 19:27 mod_bwshare.a
lrwxrwxrwx   1 root root   17 Nov 22 19:27 mod_bwshare.la -> ../mod_bwshare.la
-rw-r--r--   1 root root   823 Nov 22 19:27 mod_bwshare.lai
-rw-r--r--   1 root root 123752 Nov 22 19:27 mod_bwshare.o
-rwxr-xr-x   1 root root 85438 Nov 22 19:27 mod_bwshare.so

moose /root# /usr/local/apache2/bin/apxs -i mod_bwshare.la
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_bwshare.la
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_bwshare.la
/usr/local/apache2/modules/
cp .libs/mod_bwshare.so /usr/local/apache2/modules/mod_bwshare.so
cp .libs/mod_bwshare.lai /usr/local/apache2/modules/mod_bwshare.la
cp .libs/mod_bwshare.a /usr/local/apache2/modules/mod_bwshare.a
ranlib /usr/local/apache2/modules/mod_bwshare.a
chmod 644 /usr/local/apache2/modules/mod_bwshare.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
  /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
  during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
  during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2/modules/mod_bwshare.so

moose /root# /usr/local/apache2/bin/apachectl restart


常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-86605212 QQ:8732391   5y6s Inc.
[3 楼] Posted:2007-09-20 17:23| 顶端
deserts


头衔:大客部大客部

级别: 总版主
精华: 0
发帖: 327
威望: 2 点
金钱: 605 RMB
贡献值: 0 点
在线时间:328(小时)
注册时间:2006-01-01
查看作者资料 发送短消息 发送邮件 推荐此帖 引用回复这个帖子


最新版apache
/usr/bin/apxs2


常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-86605212 QQ:8732391   5y6s Inc.
[4 楼] Posted:2007-09-20 17:24| 顶端


 常州五颜六色网络技术有限公司 -> 技术文档


快速发帖 顶端
内容
HTML 代码不可用

使用签名
Wind Code自动转换

[查看帖子长度]
标题:
表情:


     按 Ctrl+Enter 直接提交   


[ 常州五颜六色网络技术有限公司 ]
Copyright © 2005-2007 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1

☏:0519-6605212 QQ: 点击这里给我发消息 /点击这里给我发消息 /点击这里给我发消息