{"id":536382,"date":"2021-09-20T08:55:08","date_gmt":"2021-09-20T00:55:08","guid":{"rendered":"http:\/\/4563.org\/?p=536382"},"modified":"2021-09-20T08:55:08","modified_gmt":"2021-09-20T00:55:08","slug":"linux%e5%91%bd%e4%bb%a4%e8%a1%8c%e4%b8%8b%e4%b8%8a%e4%bc%a0%e6%96%87%e4%bb%b6%e5%88%b0%e9%98%bf%e9%87%8c%e4%ba%91%e7%9b%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=536382","title":{"rendered":"Linux\u547d\u4ee4\u884c\u4e0b\u4e0a\u4f20\u6587\u4ef6\u5230\u963f\u91cc\u4e91\u76d8"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Linux\u547d\u4ee4\u884c\u4e0b\u4e0a\u4f20\u6587\u4ef6\u5230\u963f\u91cc\u4e91\u76d8<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u55f7\u55f7 \u4e8e 2021-9-20 08:48 \u7f16\u8f91 <\/p>\n<p> IP+1:https:\/\/haoduck.com\/854.html<\/p>\n<p>  \u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/Hidove\/aliyundrive-uploader<\/p>\n<p>  \u6211\u5728Github\u627e\u5230\u7684<\/p>\n<p>  \u5b89\u88c5\u4e0a\u4f20\u7a0b\u5e8f<\/p>\n<p>  Debian\/Ubutnu<br \/>  apt update<br \/>  apt install -y git python3 python3-pip<\/p>\n<p>  git clone https:\/\/github.com\/Hidove\/aliyundrive-uploader ~\/.aliup<br \/>  python3 -m pip install ~\/.aliup\/requirements.txt<\/p>\n<p>  alias aliup=&#8217;python3 ~\/.aliup\/main.py&#8217;<br \/>  echo &quot;alias aliup=&#8217;python3 ~\/.aliup\/main.py&#8217;&quot; &gt;&gt; ~\/.profile<\/p>\n<p>  CentOS<br \/>  yum install -y git python3 python3-pip<\/p>\n<p>  git clone https:\/\/github.com\/Hidove\/aliyundrive-uploader ~\/.aliup<br \/>  python3 -m pip install ~\/.aliup\/requirements.txt<\/p>\n<p>  alias aliup=&#8217;python3 ~\/.aliup\/main.py&#8217;<br \/>  echo &quot;alias aliup=&#8217;python3 ~\/.aliup\/main.py&#8217;&quot; &gt;&gt; ~\/.profile<\/p>\n<p>  \u4e0b\u9762\u662f\u9700\u8981\u914d\u7f6e\u7684<\/p>\n<p>  1. \u83b7\u53d6refresh_token\u548cdefault_drive_id(cookie)<\/p>\n<p>  \u5148\u5728\u7f51\u9875\u767b\u5f55\u963f\u91cc\u4e91\u76d8\uff1ahttps:\/\/www.aliyundrive.com\/drive<\/p>\n<p>  \u7136\u540eF12\u6253\u5f00\u63a7\u5236\u53f0\uff0c\u8f6c\u5230Console\u9875\uff0c\u7528\u4ee5\u4e0b\u547d\u4ee4\u5feb\u901f\u83b7\u53d6refresh_token<br \/>  var data = JSON.parse(localStorage.getItem(&#8216;token&#8217;));<br \/>  console.log(`refresh_token =&gt; ${data.refresh_token}<br \/>  default_drive_id =&gt; ${data.default_drive_id}<br \/>  `);<\/p>\n<p>  2. \u628arefresh_token\u548cdefault_drive_id\u5199\u5165\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>  \u590d\u5236\u4e00\u4efd~\/.aliup\/example.config.json\u91cd\u547d\u540d\u4e3aconfig.json<\/p>\n<p>  cp ~\/.aliup\/example.config.json ~\/.aliup\/config.json<br \/>  vim ~\/.aliup\/config.json<\/p>\n<p>  \u603b\u5171\u6709\u56db\u9879\u9700\u8981\u586b\u5199<\/p>\n<p>  REFRESH_TOKEN\u5c31\u662frefresh_token<br \/>  DRIVE_ID\u5c31\u662fdefault_drive_id<br \/>  ROOT_PATH\u662f\u963f\u91cc\u4e91\u76d8\u4e0a\u4f20\u7684\u76ee\u5f55(\u4e91\u76d8\u76ee\u5f55)<br \/>  FILE_PATH\u662f\u672c\u5730\u7684\u76ee\u5f55\uff0c\u548c\u4e0a\u4e00\u9879\u53ef\u4ee5\u7406\u89e3\u4e3a&quot;\u540c\u6b65\u76ee\u5f55&quot;\uff0c\u4f46\u4e0d\u5b8c\u5168\u662f<\/p>\n<p>  3. \u547d\u4ee4\u884c\u4f7f\u7528\u65b9\u6cd5<\/p>\n<p>  \u8bbe\u7f6ealias\u540e\uff0caliup\u7b49\u540c\u4e8epython3 ~\/.aliup\/main.py<\/p>\n<p>  1. \u6267\u884caliup\uff0c\u4e0a\u9762\u8bf4\u7684&quot;\u540c\u6b65\u76ee\u5f55&quot;<br \/>  2. \u4e0a\u4f20\u672c\u5730\u6587\u4ef6\/\u5939\uff0c\u6267\u884caliup \u672c\u5730\u8def\u5f84<br \/>  3. \u4e0a\u4f20\u672c\u5730\u6587\u4ef6\/\u5939\uff0c\u6307\u5b9a\u963f\u91cc\u4e91\u76d8\u7684\u76ee\u5f55\uff0c\u6267\u884caliup \u672c\u5730\u8def\u5f84 \u963f\u91cc\u4e91\u76d8\u76ee\u5f55<\/p>\n<p>  \u793a\u4f8b:<br \/>  \u4e0a\u4f20\/root\/haoduck.com.zip\u5230\u7f51\u76d8\u9ed8\u8ba4\u76ee\u5f55\uff0caliup \/root\/haoduck.com.zip<br \/>  \u4e0a\u4f20\/root\/haoduck.com.zip\u5230\u7f51\u76d8\u7684music\u76ee\u5f55\uff0caliup \/root\/haoduck.com.zip \/music<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>airline<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6218\u7565\u6027Mark\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u97a0\u5a67\u794e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u7f16\u8bd1\u597d\u7684\u53ef\u6267\u884c\u6587\u4ef6\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u55f7\u55f7 \u5927\u4f6c\u6709\u8bdd\u8bf4 : Linux\u547d&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\/536382"}],"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=536382"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/536382\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=536382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=536382"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=536382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}