{"id":39106,"date":"2024-11-26T10:58:05","date_gmt":"2024-11-26T02:58:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/39106\/"},"modified":"2024-11-26T10:58:05","modified_gmt":"2024-11-26T02:58:05","slug":"%e4%bd%bf%e7%94%a8-btfs-%e5%9c%a8%e7%ba%bf%e8%a7%82%e7%9c%8b%e7%a7%8d%e5%ad%90%e8%a7%86%e9%a2%91","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/39106\/","title":{"rendered":"\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891"},"content":{"rendered":"<p>bittorrent \u5df2\u7ecf\u5b58\u5728\u4e86\u5f88\u957f\u65f6\u95f4\uff0c\u5b83\u53ef\u4ee5\u4ece\u4e92\u8054\u7f51\u4e0a\u5171\u4eab\u548c\u4e0b\u8f7d\u6570\u636e\u3002\u5e02\u573a\u4e0a\u6709\u5927\u91cf\u7684 gui \u548c cli \u7684 bittorrent \u5ba2\u6237\u7aef\u3002\u6709\u65f6\uff0c\u4f60\u4e0d\u80fd\u5750\u4e0b\u6765\u7b49\u5f85\u4f60\u7684\u4e0b\u8f7d\u5b8c\u6210\u3002\u4f60\u53ef\u80fd\u60f3\u8981\u7acb\u5373\u89c2\u770b\u5185\u5bb9\u3002\u8fd9\u5c31\u662f <strong>btfs<\/strong> \u8fd9\u4e2a\u4e0d\u8d77\u773c\u7684\u6587\u4ef6\u7cfb\u7edf\u6d3e\u4e0a\u7528\u573a\u7684\u5730\u65b9\u3002\u4f7f\u7528 btfs\uff0c\u4f60\u53ef\u4ee5\u5c06\u79cd\u5b50\u6587\u4ef6\u6216\u78c1\u529b\u94fe\u63a5\u6302\u8f7d\u4e3a\u76ee\u5f55\uff0c\u7136\u540e\u5728\u6587\u4ef6\u6811\u4e2d\u4f5c\u4e3a\u53ea\u8bfb\u76ee\u5f55\u3002\u8fd9\u4e9b\u6587\u4ef6\u7684\u5185\u5bb9\u5c06\u5728\u7a0b\u5e8f\u8bfb\u53d6\u65f6\u6309\u9700\u4e0b\u8f7d\u3002\u7531\u4e8e btfs \u5728 fuse \u4e4b\u4e0a\u8fd0\u884c\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u5e72\u9884  \u5185\u6838\u3002<\/p>\n<p><strong>\u5b89\u88c5 BTFS<\/strong> <\/p>\n<p>BTFS \u5b58\u5728\u4e8e\u5927\u591a\u6570 Linux \u53d1\u884c\u7248\u7684\u9ed8\u8ba4\u4ed3\u5e93\u4e2d\u3002<\/p>\n<p>\u5728 Arch Linux \u53ca\u5176\u53d8\u4f53\u4e0a\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5 BTFS\u3002<\/p>\n<pre>$ sudo pacman -S btfs\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728Debian\u3001Ubuntu\u3001Linux Mint \u4e0a\uff1a<\/p>\n<pre>$ sudo apt-get install btfs\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728 Gentoo \u4e0a\uff1a<\/p>\n<pre># emerge -av btfs\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>BTFS \u4e5f\u53ef\u4ee5\u4f7f\u7528 Linuxbrew<span>[1]<\/span> \u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<pre>$ brew install btfs\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236<br \/>\n<strong>\u7528\u6cd5<\/strong> <\/p>\n<p>BTFS \u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\u3002\u4f60\u6240\u8981\u505a\u7684\u5c31\u662f\u627e\u5230 .torrent \u6587\u4ef6\u6216\u78c1\u529b\u94fe\u63a5\uff0c\u5e76\u5c06\u5176\u6302\u8f7d\u5230\u4e00\u4e2a\u76ee\u5f55\u4e2d\u3002\u79cd\u5b50\u6587\u4ef6\u6216\u78c1\u529b\u94fe\u63a5\u7684\u5185\u5bb9\u5c06\u88ab\u6302\u8f7d\u5230\u4f60\u9009\u62e9\u7684\u76ee\u5f55\u5185\u3002\u5f53\u4e00\u4e2a\u7a0b\u5e8f\u8bd5\u56fe\u8bbf\u95ee\u8be5\u6587\u4ef6\u8fdb\u884c\u8bfb\u53d6\u65f6\uff0c\u5b9e\u9645\u7684\u6570\u636e\u5c06\u6309\u9700\u4e0b\u8f7d\u3002\u6b64\u5916\uff0c\u50cf <span style=\"padding: 4px 8px;font-size: 12px;border-radius: 3px;color: #c7254e;background-color: #f9f2f4\">ls<\/span> \u3001<span style=\"padding: 4px 8px;font-size: 12px;border-radius: 3px;color: #c7254e;background-color: #f9f2f4\">cat<\/span> \u548c <span style=\"padding: 4px 8px;font-size: 12px;border-radius: 3px;color: #c7254e;background-color: #f9f2f4\">cp<\/span> \u8fd9\u6837\u7684\u5de5\u5177\u80fd\u6309\u7167\u9884\u671f\u7684\u65b9\u5f0f\u6765\u64cd\u4f5c\u79cd\u5b50\u3002\u50cf <span style=\"padding: 4px 8px;font-size: 12px;border-radius: 3px;color: #c7254e;background-color: #f9f2f4\">vlc<\/span> \u548c <span style=\"padding: 4px 8px;font-size: 12px;border-radius: 3px;color: #c7254e;background-color: #f9f2f4\">mplayer<\/span> \u8fd9\u6837\u7684\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u4e0d\u52a0\u4fee\u6539\u5730\u5de5\u4f5c\u3002\u73a9\u5bb6\u751a\u81f3\u4e0d\u77e5\u9053\u5b9e\u9645\u5185\u5bb9\u5e76\u975e\u7269\u7406\u5b58\u5728\u4e8e\u672c\u5730\u78c1\u76d8\u4e2d\uff0c\u800c\u662f\u6839\u636e\u9700\u8981\u4ece peer \u4e2d\u6536\u96c6\u3002<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u6765\u6302\u8f7d torrent\/magnet \u94fe\u63a5\uff1a<\/p>\n<pre>$ mkdir mnt\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6302\u8f7d torrent\/magnet \u94fe\u63a5\uff1a<\/p>\n<pre>$ btfs video.torrent mnt\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172865767085198.jpg\" class=\"aligncenter\" title=\"\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891\u63d2\u56fe\" alt=\"\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891\u63d2\u56fe\" \/><\/p>\n<p>cd \u5230\u76ee\u5f55\uff1a<\/p>\n<pre>$ cd mnt\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\uff0c\u5f00\u59cb\u89c2\u770b\uff01<\/p>\n<pre>$ vlc &lt;path-to-video.mp4&gt;\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7ed9 BTFS \u4e00\u4e9b\u65f6\u95f4\u6765\u627e\u5230\u5e76\u83b7\u53d6\u7f51\u7ad9 tracker\u3002\u4e00\u65e6\u52a0\u8f7d\u4e86\u771f\u5b9e\u6570\u636e\uff0cBTFS \u5c06\u4e0d\u518d\u9700\u8981 tracker\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/172865767145310.jpg\" class=\"aligncenter\" title=\"\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891\u63d2\u56fe1\" alt=\"\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891\u63d2\u56fe1\" \/><\/p>\n<p>\u8981\u5378\u8f7d BTFS \u6587\u4ef6\u7cfb\u7edf\uff0c\u53ea\u9700\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>$ fusermount -u mnt\n<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u73b0\u5728\uff0c\u6302\u8f7d\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u5c06\u6d88\u5931\u3002\u8981\u518d\u6b21\u8bbf\u95ee\u5185\u5bb9\uff0c\u4f60\u9700\u8981\u6309\u7167\u4e0a\u9762\u7684\u63cf\u8ff0\u6302\u8f7d torrent\u3002<\/p>\n<p>BTFS \u4f1a\u5c06\u4f60\u7684 VLC \u6216 Mplayer \u53d8\u6210\u7206\u7c73\u82b1\u65f6\u95f4\u3002\u6302\u8f7d\u4f60\u6700\u559c\u7231\u7684\u7535\u89c6\u8282\u76ee\u6216\u7535\u5f71\u7684\u79cd\u5b50\u6587\u4ef6\u6216\u78c1\u529b\u94fe\u63a5\uff0c\u7136\u540e\u5f00\u59cb\u89c2\u770b\uff0c\u65e0\u9700\u4e0b\u8f7d\u6574\u4e2a\u79cd\u5b50\u5185\u5bb9\u6216\u7b49\u5f85\u4e0b\u8f7d\u5b8c\u6210\u3002\u79cd\u5b50\u6216\u78c1\u529b\u94fe\u63a5\u7684\u5185\u5bb9\u5c06\u5728\u7a0b\u5e8f\u8bbf\u95ee\u65f6\u6309\u9700\u4e0b\u8f7d\u3002<\/p>\n<hr>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4f7f\u7528 BTFS \u5728\u7ebf\u89c2\u770b\u79cd\u5b50\u89c6\u9891\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bittorrent \u5df2\u7ecf\u5b58\u5728\u4e86\u5f88\u957f\u65f6\u95f4\uff0c\u5b83\u53ef\u4ee5\u4ece\u4e92\u8054\u7f51\u4e0a\u5171\u4eab\u548c\u4e0b\u8f7d\u6570\u636e\u3002\u5e02\u573a\u4e0a\u6709\u5927\u91cf\u7684 gui \u548c cli \u7684 bittorrent \u5ba2\u6237\u7aef\u3002\u6709\u65f6\uff0c\u4f60\u4e0d\u80fd\u5750\u4e0b\u6765\u7b49\u5f85\u4f60\u7684\u4e0b\u8f7d\u5b8c\u6210\u3002\u4f60\u53ef\u80fd\u60f3\u8981\u7acb\u5373\u89c2\u770b\u5185\u5bb9\u3002\u8fd9\u5c31\u662f btfs \u8fd9\u4e2a\u4e0d\u8d77\u773c\u7684\u6587\u4ef6\u7cfb\u7edf\u6d3e\u4e0a\u7528\u573a\u7684\u5730\u65b9\u3002\u4f7f\u7528 btfs\uff0c\u4f60\u53ef\u4ee5\u5c06\u79cd\u5b50\u6587\u4ef6\u6216\u78c1\u529b\u94fe\u63a5\u6302\u8f7d\u4e3a\u76ee\u5f55\uff0c\u7136\u540e\u5728\u6587\u4ef6\u6811\u4e2d\u4f5c\u4e3a\u53ea\u8bfb\u76ee\u5f55\u3002\u8fd9\u4e9b\u6587\u4ef6\u7684\u5185\u5bb9\u5c06\u5728\u7a0b\u5e8f\u8bfb\u53d6\u65f6\u6309\u9700\u4e0b\u8f7d\u3002\u7531\u4e8e btfs \u5728 fuse \u4e4b\u4e0a\u8fd0\u884c\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u5e72\u9884 \u5185\u6838\u3002 \u5b89\u88c5 BTFS BTFS \u5b58\u5728\u4e8e\u5927\u591a\u6570 Linux \u53d1\u884c\u7248\u7684\u9ed8\u8ba4\u4ed3\u5e93\u4e2d\u3002 \u5728 Arch Linux \u53ca\u5176\u53d8\u4f53\u4e0a\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5 BTFS\u3002 $ sudo pacman -S btfs \u767b\u5f55\u540e\u590d\u5236 \u5728Debian\u3001Ubuntu\u3001Linux Mint \u4e0a\uff1a $ sudo apt-get install btfs \u767b\u5f55\u540e\u590d\u5236 \u5728 Gentoo \u4e0a\uff1a # emerge -av btfs \u767b\u5f55\u540e\u590d\u5236 BTFS \u4e5f\u53ef\u4ee5\u4f7f\u7528 Linuxbrew[1] \u5305\u7ba1\u7406\u5668\u8fdb\u884c\u5b89\u88c5\u3002 $ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-39106","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=39106"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/39106\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=39106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=39106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=39106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}