mldonkey下载速度设置

os: ubuntu server 32bit

mldonkey-server: 2.9.2-2ubuntu0.1

1.安装

sudo apt-get install mldonkey-server

2.速度设置

网上有很多,有一些是不正确的。只要留意一下说明就可以了。这里的环境是4M的带宽,公网IP。主要设置如下:

max_hard_upload_rate = 10

    (* The maximal download rate you can tolerate on your link in kBytes/s (0 = no limit)
      The limit will apply on all your connections (clients and servers) and both
      control and data messages. Maximum value depends on max_hard_upload_rate:
      >= 10    -> unlimited download
      < 10 > 3 -> download limited to upload * 4
      < 4      -> download limited to upload * 3 *)
 max_hard_download_rate = 400

    (* Second maximal upload rate for easy toggling (use bw_toggle) *)
 max_hard_upload_rate_2 = 10

    (* Second maximal download rate for easy toggling (use bw_toggle) *)
 max_hard_download_rate_2 = 200

    (* Maximal number of opened connections *)
 max_opened_connections = 50

    (* Amount of indirect connections in percent (min 30, max 70) of max_opened_connections *)
 max_indirect_connections = 30

3.定时改变下载速度

 每天1点下载速度设置为400KB/s,8点设置为200KB/s。在/var/lib/mldonkey/download.ini 中的calendar直接写入:

 calendar = [
  ([
      0;
      1;
      2;
      3;
      4;
      5;
      6;], [
      1;], bw_toggle);
  ([
      0;
      1;
      2;
      3;
      4;
      5;
      6;], [
      8;], bw_toggle);]

另:可以直接改成 "set max_hard_download_rate 400" , "set max_hard_download_rate 200"
 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据