{"id":127982,"date":"2020-06-12T07:20:09","date_gmt":"2020-06-11T23:20:09","guid":{"rendered":"http:\/\/4563.org\/?p=127982"},"modified":"2020-06-12T07:20:09","modified_gmt":"2020-06-11T23:20:09","slug":"%e4%b8%80%e4%b8%aa%e5%b0%8f%e8%84%9a%e6%9c%ac-%e5%85%b3%e9%94%ae%e5%ad%97-%e7%bd%91%e7%9b%98%e5%8a%a9%e6%89%8b-aria2c-jsonrpc","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=127982","title":{"rendered":"\u4e00\u4e2a\u5c0f\u811a\u672c, \u5173\u952e\u5b57: \u7f51\u76d8\u52a9\u624b, aria2c, jsonrpc"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e00\u4e2a\u5c0f\u811a\u672c, \u5173\u952e\u5b57: \u7f51\u76d8\u52a9\u624b, aria2c, jsonrpc               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : KentY <\/span>  <span><i><\/i> 82<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>https:\/\/github.com\/sk1418\/link2jsonrpc<\/p>\n<h2>Why do I need this?<\/h2>\n<ul>\n<li>WP \u52a9\u624b\u53ef\u4ee5\u5bfc\u51fa(\u5e76 copy)wp \u6587\u4ef6\u7684<code>aria2c<\/code>\u4e0b\u8f7d\u547d\u4ee4, \u8fd9\u5df2\u7ecf\u633a\u65b9\u4fbf\u4e86. \u4f46\u662f\u6bcf\u6761\u547d\u4ee4\u90fd\u4f1a\u65b0\u542f\u52a8\u4e00\u4e2a aria2c \u8fdb\u7a0b, \u65e0\u6cd5\u5229\u7528\u5f53\u524d\u7684 aria2c daemon.<\/li>\n<li>\u7279\u522b\u662f\u5982\u679c\u81ea\u5df1\u6709 aria2 server, \u6bcf\u6b21\u90fd\u8981 ssh \u8fdb\u53bb, \u518d\u9010\u6761\u6267\u884c\u547d\u4ee4<\/li>\n<li>\u5982\u679c aria2c \u8dd1\u5728 docker \u91cc, \u5c31\u66f4\u9ebb\u70e6, \u8fd8\u6709\u8fdb\u5165 docker \u73af\u5883(\u6211\u7684 aria2c \u5728 RaspberryPi \u7684 docker \u91cc)<\/li>\n<li>\u5373\u4f7f\u901a\u8fc7 ssh \u7c98\u8d34\u5e76\u542f\u52a8 aria2c \u547d\u4ee4, \u4e5f\u65e0\u6cd5\u901a\u8fc7\u524d\u7aef(\u6bd4\u5982 ariaNG, webui \u7b49)\u76d1\u63a7\u4e0b\u8f7d\u60c5\u51b5\u548c\u63a7\u5236, \u56e0\u4e3a\u662f\u4e0d\u540c\u7684 aria2c \u8fdb\u7a0b.<\/li>\n<\/ul>\n<p>\u8fd9\u4e2a\u811a\u672c\u5c31\u662f\u89e3\u51b3\u4e0a\u8ff0\u4e0d\u4fbf, \u5f53 aria2c \u547d\u4ee4\u88ab copy \u5230\u526a\u8d34\u677f\u540e, \u8fd0\u884c\u811a\u672c, \u901a\u8fc7 aria2c \u7684 jsonrpc,\u81ea\u52a8\u5728\u8fdc\u7a0b aria2 server \u6216\u8005\u73b0\u6709\u8fdb\u7a0b\u8fdb\u884c\u4e0b\u8f7d, \u5982\u679c\u6709 web \u524d\u7aef, \u4e5f\u53ef\u76d1\u63a7.<\/p>\n<p>\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u6709\u66f4\u7701\u4e8b\u7684\u529e\u6cd5, \u5c31\u6478\u9c7c\u5199\u4e86\u51e0\u884c\u811a\u672c\u5e72\u8fd9\u4e2a\u4e8b.<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"34183\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ilolita <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u5df2\u7ecf\u6709\u4e86 aria2 \u7684\u6d4f\u89c8\u5668\u6269\u5c55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34184\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\uff0c\u4e3a\u4ec0\u4e48\u8981\u7528 docker \u5462\uff1f\u8fd9\u4e0d\u662f\u8131\u88e4\u653e\u5c41\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34185\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : KentY <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde \u90a3\u4f60\u89c9\u5f97\u4ec0\u4e48\u60c5\u51b5\u4e0b\u7528 docker \u662f\u4e0d\u8131\u88e4\u5b50\u653e\u5c41\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34186\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : KentY <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ilolita \u662f\u5417\uff1f\u7ed9\u4e2a\u94fe\u63a5\u770b\u770b\uff0c\u6211\u6ca1\u627e\u5230\u5440                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34187\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6cb9\u7334\u811a\u672c,\u672c\u5730(\u6216\u5176\u5b83)\u7684 aria2c \u4ee5\u5b88\u62a4\u6a21\u5f0f\u8fd0\u884c\u76d1\u542c,\u6cb9\u7334\u811a\u672c\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6\u7f51\u9875\u6570\u636e\u7136\u540e xmlRequest \u5230\u4efb\u610f\u8fdc\u7aef,\u5b9e\u73b0\u76f4\u63a5\u5728\u7f51\u76d8\u91cc\u9762\u70b9\u4e0b\u8f7d,\u81ea\u52a8\u53d1\u9001\u5230 aria2c<\/p>\n<p>\u6211\u5df2\u7ecf\u5b9e\u73b0\u4e86\u4e00\u4e2a\u6cb9\u7334\u811a\u672c,\u4f46\u662f\u91cc\u9762\u7684\u914d\u7f6e(url\/token)\u662f\u5199\u6b7b\u7684,\u4e0d\u80fd\u5206\u4eab                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34188\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ragnaroks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53e6\u5916\u501f\u95ee\u4e0b,\u6cb9\u7334\u6709\u6ca1\u6709\u529e\u6cd5\u5728 http \u7f51\u9875\u94fe\u63a5 wss,\u6211\u8fd9\u8fb9 chrome \u4e0d\u5141\u8bb8\u94fe\u63a5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34189\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @KentY \u5e94\u7528\u7a0b\u5e8f\u7ecf\u5e38\u66f4\u65b0\u7248\u672c\u3001\u6279\u91cf\u90e8\u7f72\u7684\u65f6\u5019\uff0c\u7528 docker \u633a\u5408\u9002\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34190\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : KentY <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde \u73b0\u5728\u7684 raspberry pi 4 \u7684 cpu, ram, io \u90fd\u5df2\u7ecf\u633a\u5f3a\u4e86. docker \u5728\u4e0a\u9762\u5e94\u7528\u6211\u89c9\u5f97\u4e0d\u5e94\u8be5\u7528&#8221;\u8131\u4e0d\u8131\u88e4\u5b50\u653e\u5c41&#8221;\u6765\u6bd4\u8f83\u4e86. \u6211\u73b0\u5728\u7684 pi \u4e0a\u8dd1 7 \u4e2a containers(nextcloud, traefik, aria2, samba&#8230;), \u914d\u7f6e\u90fd\u662f docker \/ docker-compose, \u8fd9\u6837, \u5c31\u662f\u90a3\u4e2a\u5c0f\u5361\u5d29\u4e86, \u6216\u8005\u5347\u7ea7 pi \u7684\u7cfb\u7edf, \u6240\u6709\u7684 effort \u5c31\u662f\u5b89\u88c5\u4e00\u4e2a docker, \u6240\u6709\u670d\u52a1\u9a6c\u4e0a\u5c31\u5982\u521d\u8fd0\u884c. \u800c\u4e14\u5982\u4f60\u8bf4\u7684, \u5982\u679c\u67d0\u4e2a\u5e94\u7528\u66f4\u65b0\u4e86, \u6bd4\u5982 aria2 \u6216\u8005 nextcloud, \u53ea\u9700\u4fee\u6539 docker \u7684\u914d\u7f6e\u5c31\u597d. \u5f53\u7136\u6570\u636e\u8fc1\u79fb required anyway. \u5982\u679c\u65b0\u51fa\u4e86 pi5 \u6bd4\u5982, \u4e5f\u662f\u5982\u6b64, \u4e00\u6b21\u914d\u7f6e\u968f\u65f6\u53ef\u4ee5\u7528. <br \/>\u6211\u89c9\u5f97\u50cf nas, pi \u8fd9\u79cd\u4e2a\u4eba\u5e94\u7528\u670d\u52a1\u5668, docker \u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u624b\u6bb5. <br \/>\u5f53\u7136 docker \u7684\u4f5c\u7528\u4e0d\u4ec5\u9650\u4e8e\u6b64, \u6211\u7684\u5e38\u7528\u7535\u8111\u4e0a\u4e5f\u8dd1\u597d\u51e0\u4e2a containers, \u90a3\u4e9b\u5e73\u65f6\u5de5\u4f5c, \u5f00\u53d1\u60c5\u666f\u5c31\u4e0d\u8d58\u8ff0\u4e86.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34191\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @KentY \u8fd9\u6839\u672c\u5c31\u4e0d\u662f cpu \u5f3a\u4e0d\u5f3a\u7684\u95ee\u9898\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34192\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : KentY <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde \u6211\u8bf4\u7684\u4e3b\u8981\u610f\u601d\u662f\u4ec0\u4e48? \u60a8\u6ca1\u7406\u89e3\u6291\u6216\u662f\u6211\u4e2a\u4eba\u8868\u8fbe\u6b20\u59a5.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u5c0f\u811a\u672c, \u5173\u952e\u5b57: \u7f51\u76d8\u52a9\u624b,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/127982"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127982"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/127982\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127982"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}