+ -
当前位置:首页 → 问答吧 → 如何统计虚拟主机上各个网站消耗的带宽?

如何统计虚拟主机上各个网站消耗的带宽?

时间:2010-03-12

来源:互联网

例如:申请了50M独享带宽,里面有200多个虚拟主机用户。如果统计每个虚拟主机用户用了多少的带宽?

作者: 小木虫子   发布时间: 2010-03-12

分析日志

作者: scyzxp   发布时间: 2010-03-12

awstat统计的是PV和流量。没有带宽。

作者: 小木虫子   发布时间: 2010-03-12

或者说:

得到1月的总流量,通过什么计算公式,得到这一个月,某个虚拟主机用户用了多大的带宽。

作者: 小木虫子   发布时间: 2010-03-12

please refer linkpage below

http://www.debian-administration.org/users/shoof/weblog/1

it is your need.

作者: todayhero   发布时间: 2010-03-12



QUOTE:
please refer linkpage below



it is your need.
todayhero 发表于 2010-03-12 15:44



谢谢。

文章我看了,但没有具体说如何查看。用什么模块。或者通过什么计算公式得出带宽值。

作者: 小木虫子   发布时间: 2010-03-12

i think you only glance that linkpage.in fact the content of that linkpage tells at least those tools or modules for your requirement.

1.mod_throttle.

2.awstats

how to calculate bandwidth.please see more detailed information from google.com

in general.trafic multiplies eight equals bandwidth.so first you have to fetch exact traffic per virtualhost.

作者: todayhero   发布时间: 2010-03-12

mod_throttle模块官网已经关闭了。无语。

http://www.snert.com/Software/apache.html

早起的版本只支持apache1.X.

作者: 小木虫子   发布时间: 2010-03-12

recommand that you should analyze access log of nginx.and then calculate the total traffic size per virtual host in a month.

作者: todayhero   发布时间: 2010-03-12

日志我用awstats分析,可以得到一个月的流量。

可一个月的带宽,是通过什么计算公式计算的?

作者: 小木虫子   发布时间: 2010-03-12