{"id":87710,"date":"2024-01-30T17:21:11","date_gmt":"2024-01-30T09:21:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=87710"},"modified":"2024-01-30T17:21:11","modified_gmt":"2024-01-30T09:21:11","slug":"freebsd-transmission-mldonkey","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/freebsd-transmission-mldonkey.html","title":{"rendered":"FreeBSD \u4e0b\u8f7d\u670d\u52a1\u5668 Transmission\/MLDonkey"},"content":{"rendered":"
transmission \u91c7\u7528\u5ba2\u6237\u670d\u52a1\u5668\u6a21\u5f0f\uff0c\u53ef\u4ee5\u7528FreeBSD\u4f5c\u4e3a\u4e3b\u673a\uff0c\u4ece\u5ba2\u6237\u7aef\u53d1\u9001BT\u79cd\u5b50\u7ed9\u670d\u52a1\u5668\uff0c\u8ba9\u670d\u52a1\u5668\u8fdb\u884c\u4e0b\u8f7d\uff0c\u6216\u7528\u5ba2\u6237\u7aef\u7ba1\u7406\u670d\u52a1\u5668\u4e0a\u7684\u4e0b\u8f7d\u6587\u4ef6\u3002<\/p>\n
\"bind-address-ipv4\": \"10.10.10.10\", \u5904\u4e8e\u7cfb\u7edf\u5b89\u5168\u7684\u8003\u8651\uff0c\u6211\u4eec\u5c06\u4ee5\u4e00\u4e2a\u7279\u5b9a\u7684\u7cfb\u7edf\u8d26\u53f7\u8fd0\u884cmldonkey\u7684\u670d\u52a1\u8fdb\u7a0b\u3002\u8be5\u7528\u6237\u540d\u4e3amlnet\uff0c\u96b6\u5c5e\u4e8emlnet\u7ec4\u3002\u547d\u4ee4\u5982\u4e0b\uff1a \u5bf9mldonkey\u8fdb\u884c\u521d\u59cb\u8bbe\u7f6e\u65f6\uff0c\u53ea\u9700\u8981\u4f7f\u7528\u76f8\u5e94\u7684\u53c2\u6570\u542f\u52a8mlnet\u8fdb\u7a0b\u4e00\u6b21\u5373\u53ef\u3002\u8fdb\u7a0b\u542f\u52a8\u540e\uff0c\u5c06\u81ea\u52a8\u5728\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u4e0b\u9762\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a.mldonkey\u7684\u5b50\u76ee\u5f55\uff0c\u5e76\u628a\u914d\u7f6e\u6587\u4ef6\u5b58\u653e\u4e8e\u8be5\u76ee\u5f55\u4e2d\u3002 \u5bf9admin\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801\uff0c\u9700\u8981\u8fd0\u884cmldonkey\u5185\u7f6e\u7684\u547d\u4ee4\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528telnet\u5de5\u5177\u8fde\u63a5\u8fd0\u884cmlnet\u8fdb\u7a0b\u7684PC\u673a\u76844000\u7aef\u53e3\u8bbf\u95eemldonkey\u7684\u547d\u4ee4\u884c\u63a5\u53e3\u3002\u8bbe\u7f6e\u8fc7\u7a0b\u5982\u4e0b\uff1a \u4e3a\u4e86\u4f7f\u5f97mldonkey\u80fd\u591f\u8fde\u63a5\u5230emule\u7684\u670d\u52a1\u5668\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165.met\u6587\u4ef6\u3002<\/p>\n \u8bbe\u7f6e\u4e0b\u8f7d\u6587\u4ef6\u5b58\u653e\u8def\u5f84\u3002\u9ed8\u8ba4\u65f6mldonkey\u5c06\u628a\u4e0b\u8f7d\u4e0b\u6765\u7684\u6587\u4ef6\u5b58\u653e\u5230~\/.mldonkey\/incoming\u76ee\u5f55\u4e0b\u9762\u3002\u6839\u636eUNIX\u7cfb\u7edf\u7684\u6587\u4ef6\u547d\u540d\u89c4\u5219\uff0c.mldonkey\u662f\u4e00\u4e2a\u9690\u85cf\u6587\u4ef6\u3002\u56e0\u6b64\u6211\u51b3\u5b9a\u5c06\u6587\u4ef6\u7684\u5b58\u653e\u76ee\u5f55\u4fee\u6539\u4e3a\/home\/mlnet\/mldonkey\/done\u3002\u53ef\u4ee5\u5982\u4e0b\u89e3\u51b3\uff1a \u4e0d\u8fc7\u5728\u6587\u5b57\u63a5\u53e3\u7684\u641c\u5bfb\u6709\u70b9\u7b80\u964b\uff0c\u7b14\u8005\u901a\u5e38\u90fd\u662f\u5229\u7528\u7f51\u9875\u754c\u9762\u6765\u5b58\u53d6\uff0c \u4e5f\u6709 GTK \u56fe\u5f62\u63a5\u53e3\u3002 \u5982\u679c\u8981\u4f7f\u7528\u4e2d\u6587\u641c\u5bfb\uff0c\u5219\u5148\u5728\u641c\u5bfb\u63a5\u53e3\u5148\u6309\u53f3\u952e\uff0c \u7f16\u7801 -> \u7e41\u4f53\u4e2d\u6587\uff0c \u7136\u540e\u518d\u8f93\u5165\u8981\u641c\u5bfb\u7684\u4e2d\u6587\u540d\u79f0\u5373\u53ef\u3002 \u6216\u662f\u5b89\u88c5 outta-port\/mldonkey<\/span>\uff0c \u4e5f\u53ef\u4ee5\u76f4\u63a5\u628a outta-port\/mldonkey\/files<\/span> \u5e95\u4e0b\u7684\u6863\u6848\u590d\u5236\u5230 net\/mldonkey\/files<\/span> \u5e95\u4e0b\u3002 \u56e0\u4e3a mldonkey \u76f4\u63a5\u5728 http header<\/span> \u4e2d\u8bbe\u5b9a\u4e86 charset=iso-8859-1<\/span>\uff0c \u56e0\u6b64\u6700\u597d\u7684\u505a\u6cd5\u662f\u5e0c\u671b\u4f5c\u8005\u63d0\u4f9b\u5176\u5b83\u7f16\u7801\u7684\u9009\u9879\uff0c \u4e0d\u7136\u53ea\u80fd patch source<\/span> \u4e86\u3002<\/p>\n mldonkey\u9700\u8981\u4e00\u4e2a\u975eroot\u7528\u6237\u6765\u8fd0\u884c\u3002 \u5177\u4f53\u60c5\u51b5\u53ef\u4ee5\u53c2\u8003http:\/\/forums.freebsd.org\/showthread.php?t=227 <\/span>\u73b0\u5728\u5c31\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u91cc\u8f93\u5165\uff1alocalhost:4080<\/span>\u6765\u8bbe\u7f6e\u548c\u4e0b\u8f7d\u6587\u4ef6\u4e86\u3002<\/p>\n \u9ed8\u8ba4mldonkey\u7684\u6587\u4ef6\u5939\u662f\u9690\u85cf\u7684\uff0c\u5728\u7528\u6237\u76ee\u5f55\u4e0b\u3002\u627e\u4e0b\u8f7d\u597d\u7684\u7535\u5f71\u6709\u70b9\u4e0d\u65b9\u4fbf\uff0c\u628aincoming\u8fde\u63a5\u5230\u4f60\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u5c31\u597d\u4e86\u3002\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u4fee\u6539\u9ed8\u8ba4\u4e0b\u8f7d\u8def\u5f84\u3002<\/p>\n \u70b9\u51fbservers>Import Server.met<\/span>\u8f93\u5165http:\/\/ed2k.im\/server.met<\/span>(\u653e\u5fc3\u90fd\u662f\u5b89\u5168\u670d\u52a1\u5668\u5217\u8868)\uff0c\u6216\u8005\u4e0b\u8f7d\u4e0b\u6765\u624b\u5de5\u5bfc\u5165\uff1aservers \"\/home\/username\/server.met\"<\/span>\u3002<\/p>\n \u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/emulefans.com\/emule-kad-node-dat\/ kad_load \"\/home\/username\/nodes.dat\"<\/span><\/p>\n \u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/www.informatik.uni-oldenburg.de\/~dyna\/mldonkey\/ <\/span><\/p>\n \u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165http:\/\/localhost:4080<\/span><\/p>\n \u5728input\u524d\u8f93\u5165: servers \u670d\u52a1\u5668\u5217\u8868\u5730\u5740 \u5728input\u524d\u8f93\u5165: kad_load http:\/\/upd.emule-security.org\/nodes.dat <\/span>\u6216\u5148\u4e0b\u8f7d\uff0c\u518d\u5bfc\u5165<\/p>\n client_name\u8bbe\u4e3a[CHN] [VeryCD]sdds<\/span> \u6709\u4e9bserver\u9700\u8981\u7279\u6b8a\u7684\u7528\u6237\u540d\u624d\u53ef\u4ee5\u8fde\u4e0a\uff0csdds\u53ef\u6539\u3002<\/p>\n (\u6572\u56de\u8f66\u952e\u5e94\u7528\u8fd9\u4e2a\u8bbe\u7f6e\uff0c\u4e0b\u9762\u4e5f\u4e00\u6837)<\/p>\n \u9996\u5148\u8981\u4ece\u7f51\u7edc\u8fc7\u6ee4\u540d\u5355\u4e2d\u5220\u6389\u539f\u6765\u7684\u8fc7\u6ee4\u6587\u4ef6\u5730\u5740\u3002\u8fdb\u5165Options - Settings - web infos(\u9875\u9762\u5728\u5e95\u4e0b)\uff0c\u627e\u5230\u4e0b\u9762\u8fd9\u4e00\u884c\uff1a\u201cguarding.p2p 96 http:\/\/www.bluetack.co.uk\/config\/level1.gz \u201d\/span>\uff0c\u70b9\u51fb\u5de6\u9762\u7684\u201cRemove\u201d\u6309\u952e\u5c06\u5b83\u5220\u9664\u6389\u3002\u987a\u5e26\u8bf4\u4e00\u4e0b\uff0c\u8fd9\u4e00\u884c\u91cc\u7684\u6570\u5b57\u201c96\u201d\u5c31\u662f\u66f4\u65b0\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u5c0f\u65f6\uff0c\u5373\u6bcf96\u5c0f\u65f6\u66f4\u65b0\u4e00\u6b21\u6587\u4ef6\u3002<\/p>\n \u6dfb\u52a0\u7f51\u7edc\u8fc7\u6ee4\u540d\u5355\uff0c\u8fd8\u662f\u521a\u624d\u7684web infos\u9875\u9762\uff0c\u70b9\u51fb\u5217\u8868\u53f3\u4e0a\u89d2\u7684\u201cAdd URL\u201d\u6309\u952e\uff0c\u5728\u5f39\u51fa\u6846\u91cc\u8f93\u5165\uff1a<\/p>\n --help ----sysinfo --porttest\u4e2d \u67e5\u770b\u548c\u68c0\u6d4b\u76f8\u5173\u7aef\u53e3\u662f\u5426\u5de5\u4f5c\uff01\u70b9\u51fboptions\u6309\u94ae\uff0c\u5728plugins\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9donkey\uff0c\u4fee\u6539ed2k-port<\/p>\n \u4fee\u6539ed2k\u7aef\u53e3donkey\u6240\u7528\u7684\u7aef\u53e3\u5217\u8868\uff1a\u539f\u6765\u85cf\u5728Help\uff0b \uff0d\uff0d\uff0d\uff0d\uff0d Sysinfo \u4e0b\u9762\u3002\u7ec8\u4e8e\u88ab\u6211\u627e\u5230\u4e86\uff0c\u53cd\u6b63\u4e5f\u662f\u505a\u4e00\u6b21\u7aef\u53e3\u6620\u5c04<\/p>\n \u7528share\u547d\u4ee4\u6dfb\u52a0\u5171\u4eab\u76ee\u5f55\uff0c\u5728\u547d\u4ee4\u680f\u91cc\u8f93\u5165\uff1ashare 0 \u5171\u4eab\u7684\u76ee\u5f55\u5730\u5740 Options -> Shares\u8fdb\u5165\u5171\u4eab\u76ee\u5f55\u83dc\u5355\uff0c\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u5171\u4eab\u7684\u76ee\u5f55\u548c\u4e00\u4e9b\u6709\u5173\u8bf4\u660e\uff0c\u540c\u65f6\u80fd\u5f88\u7b80\u5355\u5730\u6dfb\u52a0\u6d3b\u53d6\u6d88\u5171\u4eab\u76ee\u5f55\u3002 \u5982\uff1ahttp:\/\/bt.hz0752.net\/up\/v32.torrent\uff0c\u628a\u5730\u5740\u8d34\u5230\u53f3\u4e0a\u89d2\u7684\u6587\u672c\u6846\u91cc\uff0c\u70b9Input\u5373\u53ef\u3002\u4f46\u5982\u679cBT\u79cd\u5b50\u662f\u538b\u7f29\u6587\u4ef6\u5c31\u4e0d\u77e5\u9053\u600e\u4e48\u529e\u4e86\uff0c\u6709\u5174\u8da3\u7684\u8bd5\u8bd5\u3002\u6210\u529f\u4e86\u544a\u8bc9\u6211\uff0c\u5475\u5475\u3002 ed2k\u534f\u8bae\u4e5f\u662f\u5982\u6b64\uff0c\u5982\uff1aed2k:\/\/aabbccddeeff\/\u8d34\u5230\u53f3\u4e0a\u89d2\u7684\u6587\u672c\u6846\u91cc\uff0c\u70b9Input\u5373\u53ef\u3002<\/p>\n \u79cd\u5b50\u6587\u4ef6\u626b\u63cf\uff0c\u628a\u79cd\u5b50\u653e\u5230\/home\/harbinbeer\/.mldonkey\/torrents\/incoming\/\uff0cmldonkey\u4f1a\u81ea\u52a8\u626b\u63cf\u6dfb\u52a0\u3002<\/p>\n tail ~\/.mldonkey\/mlnet.log<\/span>\u67e5\u770b\u9519\u8bef \u4e5f\u53ef\u4ee5\u624b\u5de5\u8fd0\u884cmlnet\u67e5\u770b\u8f93\u51fa\u4fe1\u606f \u6709\u65f6\u5019\u53ef\u4ee5\u5c1d\u8bd5\u5220\u9664\/home\/harbinbeer\/.mldonkey\/friends.ini<\/span><\/p>\n .mldonkey\u7684\u6587\u4ef6\u5939\u662f\u9690\u85cf\u7684\uff0c\u5728\u7528\u6237\u76ee\u5f55\u4e0b\u3002\u627e\u4e0b\u8f7d\u597d\u7684\u7535\u5f71\u6709\u70b9\u4e0d\u65b9\u4fbf\uff0c\u628aincoming\u8fde\u63a5\u5230\u4f60\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u5c31\u597d\u4e86\u3002\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u4fee\u6539\u9ed8\u8ba4\u4e0b\u8f7d\u8def\u5f84\u3002<\/p>\n \u73b0\u5728\u5c31\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u91cc\u8f93\u5165\uff1alocalhost:4080\u6765\u8bbe\u7f6e\u548c\u4e0b\u8f7d\u6587\u4ef6\u4e86\u3002<\/p>\n \u5148\u5220\u9664\u539f\u5148\u7684\u670d\u52a1\u5668\u5217\u8868\u4e0b\u8f7d\u5730\u5740\u3002\u70b9\u51fbOptions>Web infos\u627e\u5230server.met\u884c\u7136\u540e\u70b9\u51fb\u524d\u9762\u7684Remove \u70b9\u51fbOptions>Web infos>Add Url\u8f93\u5165nodes.gzip http:\/\/ed2k.im\/nodes.dat <\/p>\n <\/span><\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.chinafreebsd.cn\/article\/59daecf02721c<\/a><\/p>\ncd \/usr\/ports\/net-p2p\/transmission
\n make install clean
\n rehash<\/code><\/p>\n# mkdir -p \/home\/transmission\/downloading
\n # mkdir -p \/home\/transmission\/incomplete # finished downloads<\/code><\/p>\ntransmission-daemon -g \/home\/transmission #\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/code><\/p>\n
\"download-dir\": \"\/home\/pi\/complete\", #\u672a\u5b8c\u6210\u7684\u4e0b\u8f7d\u76ee\u5f55
\n \"incomplete-dir\": \"\/home\/pi\/incomplete\", #\u4e0b\u8f7d\u76ee\u5f55\u4f4d\u7f6e\uff1a
\n \"rpc-whitelist\": \"192.168.1.*\", #\u5141\u8bb8Web\u8bbf\u95ee\u7684\u767d\u540d\u5355\u5730\u5740<\/p>\n
\n \"rpc-bind-address\": \"10.10.10.10\",
\n \"ddress-ipv4\": \"10.10.10.10\",
\n \"rpc-port\": 9091, # web\u8bbf\u95ee\u7aef\u53e3<\/code><\/p>\ntransmission-daemon -g \/home\/BT<\/code>
\n\u73b0\u5728\u5c31\u53ef\u4ee5web\u8bbf\u95ee\uff1ahttp:\/\/192.168.1.9:9091\/ <\/span>\uff0c\u8bbf\u95ee\u65f6\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u9ed8\u8ba4\u90fd\u662f\uff1atransmission<\/span>\u3002<\/p>\n sudo service transmission-daemon reload
\n sudo service transmission-daemon restart<\/code><\/p>\n # cd \/usr\/ports\/net-p2p\/mldonkey-core
\n # make install clean
\n # rehash<\/code><\/p>\n\n\u2022\u4e3amldonkey\u6dfb\u52a0\u4e00\u4e2a\u4e13\u7528\u7684\u7cfb\u7edf\u5e10\u6237
\n \u2022\u4e3amldonkey\u521b\u5efa\u6240\u9700\u7684\u76ee\u5f55
\n \u2022\u521d\u59cb\u5316mldonkey\u7684\u914d\u7f6e\u6587\u4ef6
\n \u2022\u5c06mldonkey\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u542f\u52a8
\n \u2022\u4e3aadmin\u7528\u6237\u8bbe\u7f6e\u5bc6\u7801
\n \u2022\u5bfc\u5165.met\u6587\u4ef6
\n \u2022\u8bbe\u7f6e\u4e0b\u8f7d\u6587\u4ef6\u5b58\u653e\u8def\u5f84<\/ol>\n
\n # pw group add mlnet
\n # pw useradd mlnet -g mlnet -m
\n # id mlnet
\n uid=1002(mlnet) gid=1003(mlnet) groups=1003(mlnet)<\/code><\/p>\n # mkdir \/home\/mlnet\/mldonkey
\n # mkdir \/home\/mlnet\/mldonkey\/temp
\n # mkdir \/home\/mlnet\/mldonkey\/done
\n # mkdir \/home\/mlnet\/mldonkey\/done\/files
\n # mkdir \/home\/mlnet\/mldonkey\/done\/directories
\n # chown -R mlnet \/home\/mlnet\/mldonkey
\n # chmod 777 \/home\/mlnet\/mldonkey\/done\/*<\/code><\/p>\n
\n# su - mlnet
\n $ \/usr\/local\/bin\/mlnet -client_name 'yourname' -allowed_ips '127.0.0.0\/8 192.168.0.0\/24' -enable_overnet true -enable_kademlia true -enable_bittorrent true -enable_donkey true -enable_opennap true -enable_fasttrack true -enable_fileTP true -mtu_packet_size 1464 -run_as_user mlnet -start_gui false -temp_directory \/home\/mlnet\/mldonkey\/temp -create_file_mode 664 -create_dir_mode 777 -pid \/home\/mlnet\/mldonkey\/run<\/code>
\n\u6b64\u65f6\u5728\u53e6\u5916\u4e00\u53f0\u673a\u5668\u4e0a\u9762\u8bbf\u95eehttp:\/\/:4080\u53ef\u4ee5\u6253\u5f00mldonkey\u7684web\u754c\u9762\u3002\u8be5web\u9875\u9762\u5c06\u63d0\u793a\u6211\u4eec\u8bbe\u7f6eadmin\u7528\u6237\u7684\u5bc6\u7801\u3002\u6211\u4eec\u7a0d\u540e\u5728\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5148\u6309+C\u952e\u7ec8\u6b62mlnet\u8fdb\u7a0b\u3002<\/p>\nmlnet_enable=\"YES\"
\n mlnet_user=\"mlnet\"
\n mlnet_flags=\"\"
\n mlnet_logfile=\"\"<\/code>
\n\u91cd\u542f\u7535\u8111\uff0c\u4f7f\u5f97mlnet\u8fdb\u7a0b\u542f\u52a8\u3002<\/p>\n
\n $ telnet localhost 4000
\n > useradd admin
\n > exit<\/code>
\n\u5b8c\u6210\u540e\u518d\u6b21\u8bbf\u95eemldonkey\u7684web\u754c\u9762\uff0c\u6b64\u65f6\u6d4f\u89c8\u5668\u5c06\u5f39\u51fa\u8eab\u4efd\u9a8c\u8bc1\u5bf9\u8bdd\u6846\u3002\u8f93\u5165\u7528\u6237\u540dadmin\u4ee5\u53ca\u8bbe\u7f6e\u7684\u5bc6\u7801\u5373\u53ef\u3002\u5efa\u8bae\u6b64\u65f6\u4f7f\u7528Option\u9875\u9762\u5bf9mldonkey\u8fdb\u4e00\u6b65\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n
\n# su - mlnet
\n $ cd \/home\/mlnet\/.mldonkey\/incoming
\n $ mv directories directories.bak
\n $ ln -s ~\/mldonkey\/done\/directories
\n $ mv files files.bak
\n $ ln -s ~\/mldonkey\/done\/files<\/code>
\n\u81f3\u6b64\uff0c\u6240\u6709mldonkey\u6240\u9700\u7684\u8bbe\u7f6e\u5df2\u7ecf\u5b8c\u6210\uff0c\u91cd\u542f\u7cfb\u7edf\u5373\u53ef\u5de5\u4f5c\u3002<\/p>\n
\n # cd \/usr\/ports\/net-p2p\/mldonkey
\n # make WITHOUT_TK=yes WITHOUT_X11=yes install clean<\/code>
\n\u7136\u540e\u6700\u597d\u81ea\u5df1\u9009\u4e2a\u5171\u540c\u7684\u5730\u65b9\u653e\uff0c\u50cf\u662f\u5efa\u7acb\u4e00\u4e2a\u65b0\u4f7f\u7528\u8005 mldonkey\uff0c \u7136\u540e\u5c06\u6863\u6848\u90fd\u7531\u8be5\u4f7f\u7528\u8005\u6765\u6267\u884c\u3002
\n # mkdir -p \/home\/mldonkey
\n # cd \/home\/mldonkey<\/code>
\n\u7b2c\u4e00\u6b21\u6267\u884c\u4f1a\u4ea7\u751f\u4e00\u4e9b\u8bbe\u5b9a\u6863\uff0c\u63a5\u7740\u5148\u6682\u505c\u6267\u884c\uff0c \u4fee\u6539\u4e00\u4e9b\u8bbe\u5b9a\u6863\u540e\uff0c\u5229\u7528\u8fdc\u7a0b\u7f51\u9875\u6765\u63a7\u5236\u3002<\/p>\n% mlnet-real &
\n % sh \/usr\/local\/bin\/kill_mldonkey
\n % vi servers.ini
\n known_servers = [
\n { server_network = Donkey
\n server_age = 59138548
\n server_addr = (\"140.123.108.139\", 7654)
\n server_desc = \"TLF Taiwan ED Server\"
\n server_name = \"TLF Taiwan ED Server\"
\n };]
\n % vi downloads.ini
\n allowed_ips = [
\n \"127.0.0.1\";
\n \"203.204.8.177\";]
\n % mlnet-real &<\/code>
\n\u7136\u540e\u5c31\u53ef\u4ee5\u5f00\u542f\u8fdc\u7a0b http:\/\/127.0.0.1:4080\/<\/span> \u6765\u6293\u6863\u6848\u5570\u3002<\/p>\n# cd \/usr\/ports\/net-p2p\/mldonkey
\n # make WITHOUT_GUI=yes WITHOUT_X11=\"YES\" WITHOUT_TK=\"YES\" install clean
\n % ln -s ~\/.mldonkey\/incoming ~<\/code><\/p>\n mlnet_enable=\"YES\"
\n mlnet_user=\"\u7528\u6237\u540d\u975eroot\"
\n % \/usr\/local\/etc\/rc.d\/mlnet start (\u6ce8\u610f\u662f%)
\n 1.% telnet 127.0.0.1 4000
\n 2.> auth admin \"\"
\n 3.> passwd \u952e\u5165\u4f60\u60f3\u8bbe\u7f6e\u7684\u5bc6\u7801
\n 4.> set allowed_ips \"127.0.0.1 192.168.0.0\/24\" (\u6839\u636e\u4f60\u81ea\u5df1\u7684\u60c5\u51b5\u8bbe\u7f6e)
\n 5.> save
\n 6.> exit<\/code><\/p>\n enable_kademlia\u7684\u9009\u9879\u4e3atrue\u2015\u2015\u6253\u5f00kad\u51cf\u5c11\u5bf9\u670d\u52a1\u5668\u7684\u4f9d\u8d56\u3002
\n max_hard_upload_rate\u9ed8\u8ba4\u662f10 \uff08\u5168\u5c40\u6700\u5927\u4e0a\u4f20\uff0c\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u8bbe\u7f6e\uff09
\n max_hard_download_rate\u9ed8\u8ba4\u662f50 \uff08\u5168\u5c40\u6700\u5927\u4e0b\u8f7d\uff0c\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u8bbe\u7f6e\uff09
\n mldonkey\u6709\u4e24\u7ec4\u4e24\u7ec4\u5e26\u5bbd\u63a7\u5236\u6a21\u5f0f\uff0c\u901a\u8fc7\u70b9\u51fbBandwidth toggle\u6765\u66f4\u6539\u5e26\u5bbd\u63a7\u5236\u6a21\u5f0f\u3002<\/code><\/p>\nov_load \"\/home\/username\/contact.dat\"<\/code><\/p>\n
\n \u4f8b\u5982\uff1a servers http:\/\/www.emule.org.cn\/server.met <\/span>\u6572\u56de\u8f66\u952e\u6216\u6309input\u5bfc\u5165\u3002\u4e5f\u53ef\u4ee5\u5148\u4e0b\u8f7d\uff0c\u518d\u5bfc\u5165<\/p>\n servers \u201c\/home\/username\/server.met\u201d\u2014\u2014\u5bfc\u5165\u670d\u52a1\u5668\u5217\u8868
\n ov_load \u201c\/home\/username\/contact.dat\u201d\u2014\u2014\u5bfc\u5165overnet\u542f\u52a8\u7528\u6237\u5217\u8868
\n kad_load \u201c\/home\/username\/nodes.dat\u201d\u2014\u2014\u5bfc\u5165kad\u542f\u52a8\u7528\u6237\u5217\u8868<\/code><\/p>\n max_hard_upload_rate \u4e0a\u4f20\u901f\u5ea6\u6700\u5927\u503c
\n max_hard_download_rate \u4e0b\u8f7d\u901f\u5ea6\u6700\u5927\u503c<\/code>
\n\u5982\u679c\u8981\u9650\u5236\u4f20\u8f93\u901f\u5ea6\uff0c\u5c31\u8bbe\u7f6e\u8fd9\u4e24\u4e2a\u53c2\u6570\uff0c0\u8868\u793a\u4e0d\u9650\uff0c\u5355\u4f4d\u662fKB<\/p>\n max_hard_upload_rate_2 \u7b2c\u4e8c\u4e2a\u4e0a\u4f20\u901f\u5ea6\u6700\u5927\u503c
\n max_hard_download_rate_2 \u7b2c\u4e8c\u4e2a\u4e0b\u8f7d\u901f\u5ea6\u6700\u5927\u503c
\n max_opened_connections \u4e3a\u6700\u5927\u94fe\u63a5\u6570
\n max_concurrent_downloads \u6700\u5927\u5bb9\u8bb8\u7684\u540c\u65f6\u4e0b\u8f7d\u7ebf\u7a0b\u9ed8\u8ba4\u662f60<\/code><\/p>\n buffer_writes\uff1a\u662f\u5426\u6253\u5f00\u7f13\u5b58\u5199\u5165\uff0c\u5efa\u8bae\u6253\u5f00
\n buffer_writes_delay\uff1a\u5199\u5165\u7f13\u5b58\u65f6\u7684\u5ef6\u8fdf\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3a\u79d2\uff0c\u5efa\u8bae30.\u6216\u8005\u66f4\u9ad8
\n buffer_writes_threshold\uff1a\u7f13\u5b58\u5230\u4e86\u6307\u5b9a\u503c\u65f6\u5f3a\u5236\u5199\u5165\uff0c\u5355\u4f4d\u4e3aKB\uff0c\u9ed8\u8ba41024KB\uff08\u8bbe\u4e3a3000 \uff0c3MB\u4e4b\u540e\u5f3a\u5236\u5199\u5165\u786c\u76d8\uff09<\/code><\/p>\n enable_overnet\uff1aOvernet\u7f51\u7edc\uff0c\u5efa\u8bae\u6253\u5f00
\n enable_kademlia\uff1aKAD\u7f51\u7edc\uff0c\u5fc5\u987b\u6253\u5f00
\n enable_donkey\uff1aeDonkey\u7f51\u7edc\uff0c\u5fc5\u987b\u6253\u5f00
\n enable_bittorrent\uff1aBT\uff0c\u5efa\u8bae\u6253\u5f00\uff0c\u4e0d\u7528\u7684\u4e5f\u53ef\u4ee5\u4e0d\u5f00
\n enable_fasttrack\uff1aFastTrack\u7f51\u7edc\uff0c\u597d\u50cf\u5df2\u7ecf\u505c\u7528\u4e86
\n enable_directconnect\uff1aDirectConnect\u7f51\u7edc\uff0c\u4e0d\u5e38\u7528\uff0c\u53ef\u4ee5\u53ef\u5173\u95ed
\n enable_fileTP\uff1aFTP\u548cHTTP\uff0c\u6253\u5f00\u5427<\/code><\/p>\n ED2K-max_connected_servers\uff1a\u6700\u5927\u8fde\u63a5\u7684\u670d\u52a1\u5668\u6570\u91cf\uff0c\u592a\u5927\u4e5f\u6ca1\u7528\uff0c\u4e00\u822c\u7a33\u5b9a\u540e\u5c315\u4e2a
\n ED2K-force_client_high_id\uff1a\u6253\u5f00\uff0c\u5f3a\u5236\u5ba2\u6237\u7aef\u4e3aHighID
\n ED2K-force_high_id\uff1a\u6253\u5f00\uff0c\u5f3a\u5236\u81ea\u5df1\u4e3ahighID
\n ED2K-keep_best_server\uff1a\u4fdd\u6301\u4f7f\u7528\u6700\u597d\u7684\u670d\u52a1\u5668
\n ED2K-good_client_rank\uff1a\u5b83\u8868\u793a\u9700\u8981\u7ef4\u6301\u8fde\u63a5\u7684\u5ba2\u6237\u7aef\u957f\u5ea6\uff0c\u9ed8\u8ba4500\uff0c\u7b2c500\u4ee5\u5916\u7684\u5ba2\u6237\u7aef\u5c06\u65ad\u5f00\uff0c\u7b49\u5f85\u4e0b\u4e00\u6b21\u8bbf\u95ee
\n ED2K-connect_only_preferred_server: \u53ea\u8fde\u63a5\u4f18\u5148\u9009\u5b9a\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u6837\u5c31\u907f\u514d\u4e86\u8fde\u63a5\u8d44\u6e90\u91cf\u5c0f\u548c\u65e0\u7528\u7684\u670d\u52a1\u5668\uff0c\u524d\u63d0\u662f\u4f60\u5fc5\u987b\u8bbe\u7f6e\u4e86\u4f18\u5148\u670d\u52a1\u5668
\n ED2K-update_server_list_server\uff1a\u4ece\u8fde\u63a5\u7684\u670d\u52a1\u5668\u91cc\u66f4\u65b0\u670d\u52a1\u5668\u5217\u8868\uff0c\u5efa\u8bae\u5173\u95ed\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u4e00\u4e9b\u5783\u573e\u670d\u52a1\u5668
\n ED2K-update_server_list_server_met\uff1a\u4ece\u670d\u52a1\u5668\u5217\u8868\u6587\u4ef6\u66f4\u65b0\u670d\u52a1\u5668\uff0c\u5fc5\u987b\u6253\u5f00
\n ED2K-update_server_list_client \uff1a\u4ece\u8fde\u63a5\u5230\u7684\u5ba2\u6237\u7aef\u91cc\u66f4\u65b0\u670d\u52a1\u5668\u5217\u8868\uff0c\u5efa\u8bae\u5173\u95ed\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u4e00\u4e9b\u5783\u573e\u670d\u52a1\u5668<\/code><\/p>\nhdd_temp_minfree\uff1a\u4e34\u65f6\u76ee\u5f55\u6700\u5c0f\u53ef\u7528\u7a7a\u95f4\uff0c\u9ed8\u8ba4\u5927\u5c0f\u8bbe\u7f6e\u4e3a50M
\n hdd_temp_stop_core\uff1a\u5982\u679c\u4e34\u65f6\u76ee\u5f55\u7684\u53ef\u7528\u7a7a\u95f4\u5c11\u4e8e\u4e0a\u9762\u8bbe\u7f6e\u7684\u6307\u5b9a\u503c\uff0c\u7a0b\u5e8f\u5c31\u4f1a\u81ea\u52a8\u505c\u6b62
\n client_buffer_size\uff1a\u8868\u793a\u7f13\u5b58\u7684\u603b\u5927\u5c0f\uff0c\u5355\u4f4d\u5b57\u8282\uff0c\u9ed8\u8ba4\u503c\u662f500000\uff0c\u537350MB\uff0c\u5185\u5b58\u662f\u4e0d\u5f88\u5403\u7d27\u7684\u5efa\u8bae\u8bbe\u5927\u70b9
\n share_scan_interval\uff1a\u5171\u4eab\u76ee\u5f55\u7684\u68c0\u67e5\u65f6\u95f4\uff0c\u5355\u4f4d\u5206\u949f\uff0c\u9ed8\u8ba4\u662f30\u5206\u949f\uff0c0\u662f\u4e0d\u68c0\u67e5\u5171\u4eab\u76ee\u5f55<\/code><\/p>\nguarding.p2p \u8fc7\u6ee4\u6587\u4ef6\u5730\u5740 96 \u4f8b\u5982\uff1a
\nguarding.p2p http:\/\/upd.emule-security.net\/ipfilter.zip 96<\/code><\/p>\n
\n \u8fd9\u91cc\u662f\u6570\u5b570\uff0c\u4e0d\u662f\u5b57\u6bcdo\uff0c\u8868\u793a\u4f18\u5148\u7b49\u7ea7
\n \u4f8b\u5982
\n share 0 \/home\/shares<\/code>
\n \u7528unshare\u547d\u4ee4\u53ef\u4ee5\u5c06\u5df2\u7ecf\u5171\u4eab\u4e86\u7684\u76ee\u5f55\u53d6\u6d88\uff0c\u5728\u547d\u4ee4\u680f\u8f93\u5165\uff1aunshare \u8981\u53d6\u6d88\u7684\u5171\u4eab\u76ee\u5f55\u5730\u5740
\n \u4f8b\u5982
\n unshare \/home\/shares<\/code>
\nWebUI\u7684\u83dc\u5355\u80fd\u76f4\u89c2\u65b9\u4fbf\u5730\u7ba1\u7406\u5171\u4eab\u76ee\u5f55<\/p>\n
\n \u53d6\u6d88\u76ee\u5f55\u5171\u4eab\uff0c\u53ea\u8981\u70b9\u67d0\u5171\u4eab\u76ee\u5f55\u65c1\u7684\u201cUnshare\u201d\u6309\u952e\u5c31\u53ef\u4ee5\u4e86\u3002
\n \u6dfb\u52a0\u5171\u4eab\u76ee\u5f55\u662f\u70b9\u51fb\"Add Share\"\u6309\u952e\u7136\u540e\u8f93\u5165\uff1a0 \u5171\u4eab\u7684\u76ee\u5f55\u5730\u5740
\n \u4f8b\u5982
\n 0 \/home\/share<\/code><\/p>\n
~\/.mldonkey\/downloads.ini \u57fa\u672c\u7684\u8bbe\u7f6e( \u8fd9\u4e2a\u662ffor edonkey\u548c\u5176\u4ed6\u534f\u8bae\u7684)
\n ~\/.mldonkey\/servers.ini \u670d\u52a1\u5668\u5217\u8868\u6587\u4ef6
\n ~\/.mldonkey\/files.ini \u5f53\u524d\u5df2\u7ecf\u5b8c\u6210\u7684\u548c\u672a\u5b8c\u6210\u7684\u6587\u4ef6\u5217\u8868
\n ~\/.mldonkey\/friends.ini \u597d\u53cb\u5217\u8868
\n ~\/.mldonkey_gui.ini \u56fe\u5f62\u524d\u7aef\u7684\u914d\u7f6e\u6587\u4ef6 <\/code>
\n\u53e6\u5916\u5176\u4ed6\u7684\u7f51\u7edc\u534f\u8bae\u90fd\u6709\u5176\u5355\u72ec\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e00\u822c\u90fd\u653e\u5728~\/.mldonkey\u76ee\u5f55\u4e0b<\/p>\n#pkg install mldonkey<\/code><\/p>\n
#cd \/usr\/ports\/net-p2p\/mldonkey\/ && make WITHOUT_GUI=yes WITHOUT_X11=\"YES\" WITHOUT_TK=\"YES\" install clean
\n #rehash<\/code><\/p>\n 1.#echo 'mlnet_enable=\"YES\"'>> \/etc\/rc.conf
\n 2.#echo 'mlnet_user=\"p2p\"'>> \/etc\/rc.conf<\/code><\/p>\n 1.#pw user add p2p
\n 2.#mkdir \/home\/p2p
\n 3.#chown p2p:p2p \/home\/p2p
\n 4.#shutdown -r now<\/code><\/p>\n 1.#\/usr\/local\/etc\/rc.d\/mlnet status
\n 2.#exit
\n 3.%telnet 127.0.0.1 4000
\n 4.>auth admin \"\"
\n 5.>passwd \u952e\u5165\u4f60\u60f3\u8bbe\u7f6e\u7684\u5bc6\u7801
\n 6.>set allowed_ips \"127.0.0.1 192.168.0.0\/24\" (\u6839\u636e\u4f60\u81ea\u5df1\u7684\u60c5\u51b5\u8bbe\u7f6e)
\n 7.>save
\n 8.>exit<\/code><\/p>\n enable_kademlia\u7684\u9009\u9879\u4e3atrue\u2015\u2015\u6253\u5f00kad\u51cf\u5c11\u5bf9\u670d\u52a1\u5668\u7684\u4f9d\u8d56\u3002
\n max_hard_upload_rate\u9ed8\u8ba4\u662f10 \uff08\u5168\u5c40\u6700\u5927\u4e0a\u4f20\uff0c\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u8bbe\u7f6e\uff09
\n max_hard_download_rate\u9ed8\u8ba4\u662f50 \uff08\u5168\u5c40\u6700\u5927\u4e0b\u8f7d\uff0c\u6839\u636e\u81ea\u5df1\u60c5\u51b5\u8bbe\u7f6e\uff09
\n mldonkey\u6709\u4e24\u7ec4\u4e24\u7ec4\u5e26\u5bbd\u63a7\u5236\u6a21\u5f0f\uff0c\u901a\u8fc7\u70b9\u51fbBandwidth toggle\u6765\u66f4\u6539\u5e26\u5bbd\u63a7\u5236\u6a21\u5f0f\u3002<\/code><\/p>\n
\n \u7136\u540e\u70b9\u51fbAdd Url\u8f93\u5165\u201cserver.met http:\/\/www.gruk.org\/server.met\u201d\uff08\u4e0d\u5305\u62ec\u5f15\u53f7\uff0cMLdonkey\u7684Serverlist\u91cc\u63d0\u4f9b\u7684\u670d\u52a1\u5668\u5217\u8868\u3002\uff09\u518d\u70b9\u51fb\u524d\u9762\u7684DL\u4e5f\u5c31\u662fDownLoad\u3002 <\/p>\n\n