» 您尚未 登录   注册 | 社区服务 | 帮助 | 社区 | 无图版


常州五颜六色网络技术有限公司 -> 技术文档 -> 关于mod_bwshare的定义
 XML   RSS 2.0   WAP 

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


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-10-10
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子

关于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-89991155 企业QQ:4006023839   5y6s Inc.
[楼 主] | Posted: 2007-09-20 17:18 顶端
deserts


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-10-10
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



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-89991155 企业QQ:4006023839   5y6s Inc.
[1 楼] | Posted: 2007-09-20 17:18 顶端
deserts


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-10-10
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子

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-89991155 企业QQ:4006023839   5y6s Inc.
[2 楼] | Posted: 2007-09-20 17:19 顶端
deserts


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-10-10
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子

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-89991155 企业QQ:4006023839   5y6s Inc.
[3 楼] | Posted: 2007-09-20 17:23 顶端
deserts


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-10-10
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子



最新版apache


本部分内容设定了隐藏,需要回复后才能看到




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

Tel:0519-89991155 企业QQ:4006023839   5y6s Inc.
[4 楼] | Posted: 2007-09-20 17:24 顶端

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



Copyright © 2005-2009 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Total 0.029384(s) query 8, Gzip enabled
会员言论不代表本站立场 本站法律顾问:北京汇泽律师事务所 韩律师
QQ:点击这里给我发消息 /点击这里给我发消息 /点击这里给我发消息