Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
zh:docs:guide-user:services:network_monitoring:bandwidthd [2022/11/21 03:30] – [配置] yodozh:docs:guide-user:services:network_monitoring:bandwidthd [2022/11/21 07:42] – [使用] yodo
Line 39: Line 39:
 ===== 安装 ===== ===== 安装 =====
  
-For the bandwidthd package:+安装bandwidthd包:
 <code bash> <code bash>
 opkg install bandwidthd uhttpd opkg install bandwidthd uhttpd
Line 48: Line 48:
 </code> </code>
  
-For the bandwidthd-pgsql package (note: do not install uhttpd if you do not plan for the router to perform the graphs):+安装bandwidthd-pgsql包(注意:如不在路由器上生成图形,那么可以不安装uhttpd):
 <code bash> <code bash>
 opkg install bandwidthd-pgsql uhttpd opkg install bandwidthd-pgsql uhttpd
Line 57: Line 57:
 </code> </code>
  
-With all dependencies it uses around 500 kB of storage space.  If you have not changes the IP address of your router (192.168.1.1), then the web page with the bandwidthd data will be available at http://192.168.1.1/bandwidthd.  If you have changed the IP address of your router, then edit the /etc/config/bandwidthd file to correct the address.+所需其他依赖大致需要500kB空间,如果路由器IP地址为默认的192.168.1.1,那么即可通过 http://192.168.1.1/bandwidthd 访问服务。 如果修改了路由器IP,那么编辑配置文件(/etc/config/bandwidthd)内的IP地址为修改后的IP。
  
 ===== 配置 ===== ===== 配置 =====
Line 120: Line 120:
 ===== 使用 ===== ===== 使用 =====
  
-By default, bandwidthd hosts its statistics at /bandwidthd. All packages (**bandwidthd**, **bandwidthd-pgsql** and **bandwidthd-sqlite**) are set by default to graph and if this is not the behaviour that you want, then change the __option graph__ to __false__ in the configuration file (///etc/config/bandwidthd// For example, if the OpenWRT router'IP address is 192.168.1.1, bandwidthd's stats would be available at http://192.168.1.1/bandwidthd +默认情况下bandwidthd在 /bandwidthd 目录存放分析数据。任意一个软件包 (**bandwidthd**, **bandwidthd-pgsql** and **bandwidthd-sqlite**) 默认设置均会生成图形文件,如果不需要生成,修改配置文件(///etc/config/bandwidthd//)的 __option graph__ 选项为 __false__    如果路由器IP192.168.1.1,那么即可访问http://192.168.1.1/bandwidthd
- +
-**bandwidthd-pgsql** can store in a postgresql database and PHP has to be used to generate the graphs that are available at http://192.168.1.1/phphtdocs/index.php (see below) (of course, change the IP address to the one of the web server hosting the PHP files (your router or whatever web server you are using to graph the data)).+
  
 +**bandwidthd-pgsql** 可以将数据库保存到postgresql数据库,然后通过PHP生成图形文件,访问地址为:http://192.168.1.1/phphtdocs/index.php 
 +当然,这里的IP需要修改为web服务器(包含PHP文件)的IP,可以是你的路由器或者其他任何服务器(只要能生成图形文件)。
 ===== 在外置存储空间保存bandwidthd数据 ===== ===== 在外置存储空间保存bandwidthd数据 =====
  
  • Last modified: 2022/11/21 11:33
  • by yodo