{"id":1723,"date":"2023-06-07T13:32:38","date_gmt":"2023-06-07T13:32:38","guid":{"rendered":"https:\/\/blog.kimi.ee\/?p=1723"},"modified":"2023-06-07T13:38:54","modified_gmt":"2023-06-07T13:38:54","slug":"%e3%80%90%e7%bd%91%e7%9b%98%e3%80%91%e9%80%9a%e8%bf%87webdav%e6%8a%8aalist%e7%9a%84%e7%bd%91%e7%9b%98%ef%bc%88%e5%a4%a9%e7%bf%bc%ef%bc%89%e6%8c%82%e8%bd%bd%e5%88%b0vps%e6%88%96%e6%9c%ac%e5%9c%b0","status":"publish","type":"post","link":"https:\/\/blog.kimi.ee\/?p=1723","title":{"rendered":"\u3010\u7f51\u76d8\u3011\u901a\u8fc7Webdav\u628aAlist\u7684\u7f51\u76d8\uff08\u5929\u7ffc\uff09\u6302\u8f7d\u5230vps\u6216\u672c\u5730\uff0c\u5e76\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_62 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >\u3010 \u76ee \u5f55 \u3011 -  \u70b9\u51fb\u4e0b\u65b9\u6807\u9898\u8df3\u8f6c <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #cecece;color:#cecece\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #cecece;color:#cecece\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#Alist%E5%AE%89%E8%A3%85_%E9%85%8D%E7%BD%AE\" title=\"Alist\u5b89\u88c5&amp;\u914d\u7f6e\">Alist\u5b89\u88c5&amp;\u914d\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E5%AE%89%E8%A3%85%E5%92%8C%E9%85%8D%E7%BD%AERclone\" title=\"\u5b89\u88c5\u548c\u914d\u7f6eRclone\">\u5b89\u88c5\u548c\u914d\u7f6eRclone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E6%8C%82%E8%BD%BD%E7%BD%91%E7%9B%98\" title=\"\u6302\u8f7d\u7f51\u76d8\">\u6302\u8f7d\u7f51\u76d8<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B\" title=\"\u4f7f\u7528\u793a\u4f8b\">\u4f7f\u7528\u793a\u4f8b<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E5%8F%96%E6%B6%88%E6%8C%82%E8%BD%BD%EF%BC%9A\" title=\"\u53d6\u6d88\u6302\u8f7d\uff1a\">\u53d6\u6d88\u6302\u8f7d\uff1a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E5%BC%80%E6%9C%BA%E8%87%AA%E5%8A%A8%E6%8C%82%E8%BD%BD\" title=\"\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\">\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF\" title=\"\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\">\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E7%AE%A1%E7%90%86%E6%8C%82%E8%BD%BD%E5%8F%96%E6%B6%88%E6%8C%82%E8%BD%BD%E8%87%AA%E5%90%AF%E5%8A%A8\" title=\"\u7ba1\u7406\u6302\u8f7d\/\u53d6\u6d88\u6302\u8f7d\/\u81ea\u542f\u52a8\">\u7ba1\u7406\u6302\u8f7d\/\u53d6\u6d88\u6302\u8f7d\/\u81ea\u542f\u52a8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E5%8D%B8%E8%BD%BD%E8%87%AA%E5%90%AF%E6%8C%82%E8%BD%BD\" title=\"\u5378\u8f7d\u81ea\u542f\u6302\u8f7d\">\u5378\u8f7d\u81ea\u542f\u6302\u8f7d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E9%85%8D%E7%BD%AE%E5%AE%9D%E5%A1%94%E8%87%AA%E5%8A%A8%E5%A4%87%E4%BB%BD\" title=\"\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd\">\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blog.kimi.ee\/?p=1723\/#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\" title=\"\u53c2\u8003\u8d44\u6599\">\u53c2\u8003\u8d44\u6599<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Alist%E5%AE%89%E8%A3%85_%E9%85%8D%E7%BD%AE\"><\/span>Alist\u5b89\u88c5&amp;\u914d\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>docker\u5b89\u88c5Alist\uff0c\u5e76\u914d\u7f6e\u597d\u7f51\u76d8\uff08\u672c\u6587\u4f7f\u7528\u5929\u7ffc\u7f51\u76d8\uff09\uff0c\u672c\u6587\u4e0d\u6d89\u53caAlist\u914d\u7f6e<\/p>\n\n\n\n<p>\u5728\u5b9d\u5854\u6587\u4ef6\u91cc\uff0c\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u6587\u4ef6\u5939\u3010Tianyi\u3011<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E5%92%8C%E9%85%8D%E7%BD%AERclone\"><\/span>\u5b89\u88c5\u548c\u914d\u7f6eRclone<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>curl https:\/\/rclone.org\/install.sh | sudo bash<\/code><\/pre><\/div>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u540e\uff0c\u8f93\u5165&nbsp;<code>rclone config<\/code>&nbsp;\u547d\u4ee4\u8fdb\u5165\u4ea4\u4e92\u5f0f\u914d\u7f6e\u9009\u9879\uff0c\u6309\u7167\u63d0\u793a\u4e00\u6b65\u4e00\u6b65\u6765\u8fdb\u884c\u64cd\u4f5c\u5373\u53ef\u3002\u5982\u679c\u4f60\u4e00\u8138\u61f5\u903c\uff0c\u53ef\u4ee5\u53bb\u770b\u300a<a rel=\"noreferrer noopener\" href=\"https:\/\/p3terx.com\/archives\/rclone-installation-and-configuration-tutorial.html\" target=\"_blank\">Rclone \u5b89\u88c5\u914d\u7f6e\u6559\u7a0b<\/a>\u300b\u6765\u4e86\u89e3\u914d\u7f6e\u7684\u8be6\u7ec6\u8fc7\u7a0b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>rclone config<\/code><\/pre><\/div>\n\n\n\n<p>\u8f93\u5165n\u521b\u5efa\u65b0\u6302\u8f7d<\/p>\n\n\n\n<p><strong>\u3010\u6ce8\u610f\u3011\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\uff0curl\u5199\u6cd5\u4e00\u5b9a\u8981\u6709\/dav\/\u4f5c\u4e3a\u7ed3\u5c3e<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>Enter name for new remote.\nname&gt; Alist  #\u8fd9\u91cc\u540d\u5b57\u53ef\u4ee5\u8f93\u5165Alist\n\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\n46 \/ WebDAV\n   \\ (webdav)\n\n# \u7ec8\u7aef\u8f93\u5165 46 \u9009\u62e9webdav\n\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\n#\u8f93\u5165url\uff0c\u6ce8\u610f\u8981\u4ee5dav\/\u7ed3\u5c3e\uff0c\u4f8b\u5982\uff1a\nhttp:\/\/127.0.0.1:\u7aef\u53e3\u53f7\/dav\/\n\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\n5 \/ Other site\/service or software\n   \\ (other)\n\n# \u90095\uff0cother webdav\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\nChoose an alternative below. Press Enter for the default (n).\ny) Yes, type in my own password\ng) Generate random password\nn) No, keep existing (default)\ny\/g\/n&gt; \n\n# \u8f93\u5165user\u540e\uff0c\u9009 y \u8f93\u5165password\uff0c\u5e76\u91cd\u590d\u8f93\u5165\u5bc6\u7801\n# \u5269\u4e0b\u7684\u76f4\u63a5\u6309enter\u9ed8\u8ba4\uff0c\u9ad8\u7ea7\u9009\u9879\u4e5f\u4e0d\u7528\u7ba1<\/code><\/pre><\/div>\n\n\n\n<p><strong>\u5b89\u88c5 fuse<\/strong><\/p>\n\n\n\n<p>\u6302\u8f7d\u9700\u8981\u5b89\u88c5 fuse\uff0c\u6839\u636e\u81ea\u5df1\u7684\u7cfb\u7edf\u6765\u9009\u62e9\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code># Debian\/Ubantu\napt-get update && apt-get install -y fuse\n# CentOS\nyum install -y fuse\n\n# \u6709\u53ef\u80fd\u8fd8\u9700\u8981\u5b89\u88c5fuse3\nyum install -y fuse3<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc_3\"><span class=\"ez-toc-section\" id=\"%E6%8C%82%E8%BD%BD%E7%BD%91%E7%9B%98\"><\/span>\u6302\u8f7d\u7f51\u76d8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6302\u8f7d\u7f51\u76d8\u5206\u4e3a\u624b\u52a8\u6302\u8f7d\u548c\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\uff0c\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u6765\u9009\u62e9\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>#\u6302\u8f7d\nrclone mount &lt;\u7f51\u76d8\u540d\u79f0:\u7f51\u76d8\u8def\u5f84&gt; &lt;\u672c\u5730\u8def\u5f84&gt; [\u53c2\u6570] --daemon\n#\u53d6\u6d88\u6302\u8f7d\nfusermount -qzu &lt;\u672c\u5730\u8def\u5f84&gt;\u70b9\u51fb\u590d\u5236<\/code><\/pre><\/div>\n\n\n\n<p><code>\u7f51\u76d8\u540d\u79f0<\/code>\u4e3a\u914d\u7f6e\u65f6\u586b\u7684&nbsp;<code>name<\/code>\uff0c<code>\u7f51\u76d8\u8def\u5f84<\/code>\u4e3a\u7f51\u76d8\u91cc\u7684\u6587\u4ef6\u5939\uff0c\u7559\u7a7a\u4e3a\u6574\u4e2a\u7f51\u76d8\uff0c<code>\u672c\u5730\u8def\u5f84<\/code>\u4e3a VPS \u4e0a\u7684\u672c\u5730\u6587\u4ef6\u5939\u3002<code>\u53c2\u6570<\/code>\u53ef\u4ee5\u67e5\u770b<a href=\"https:\/\/p3terx.com\/go\/aHR0cHM6Ly9yY2xvbmUub3JnL2NvbW1hbmRzL3JjbG9uZV9tb3VudC8=\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u65b9\u6587\u6863<\/a>\u6839\u636e\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002\u5b9e\u9645\u8f93\u5165\u65f6\u4e0d\u8981\u6709\u62ec\u53f7\uff0c\u8fd9\u91cc\u53ea\u662f\u4e3a\u4e86\u66f4\u6e05\u695a\u7684\u533a\u5206\u3002<code>--daemon<\/code>&nbsp;\u4e3a\u8fdb\u7a0b\u5b88\u62a4\u53c2\u6570\uff0c\u53ef\u540e\u53f0\u8fd0\u884c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"toc_5\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B\"><\/span>\u4f7f\u7528\u793a\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u8f93\u5165\u547d\u4ee4\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code> rclone mount Alist:\/Tianyi\/ \/Tianyi --copy-links --allow-other --allow-non-empty --umask 000 --daemon<\/code><\/pre><\/div>\n\n\n\n<p>\u7136\u540e\u8f93\u5165&nbsp;<code>df -h<\/code>&nbsp;\u547d\u4ee4\u67e5\u770b\u6302\u8f7d\u60c5\u51b5\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9\ndevtmpfs        486M     0  486M    0% \/dev\ntmpfs           496M     0  496M    0% \/dev\/shm\ntmpfs           100M     0  100M    0% \/run\/user\/0\nAlist:Tianyi    1.0P     0  1.0P    0% \/Tianyi    #\u8fd9\u4e2a\u5c31\u662f\u521a\u6302\u8f7d\u4e0a\u53bb\u7684\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%96%E6%B6%88%E6%8C%82%E8%BD%BD%EF%BC%9A\"><\/span>\u53d6\u6d88\u6302\u8f7d\uff1a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>fusermount -qzu \/Tianyi<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BC%80%E6%9C%BA%E8%87%AA%E5%8A%A8%E6%8C%82%E8%BD%BD\"><\/span>\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>wget -N git.io\/rcloned && nano rcloned\n\n\u6216\uff1a\n\n\u3010\u63a8\u8350\u3011\u5728 \/etc\/init.d\u4e0b\u65b0\u5efa\u4e00\u4e2arcloned\u7684\u6587\u4ef6\uff0c\u590d\u5236\u4ee5\u4e0b\u5185\u5bb9\uff1a\n\n#!\/bin\/bash\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin:~\/bin\nexport PATH\nNAME_BIN=&quot;rclone&quot;\n### BEGIN INIT INFO\n# Provides:          rclone\n# Required-Start:    $all\n# Required-Stop:     $all\n# Default-Start:     2 3 4 5\n# Default-Stop:      0 1 6\n# Short-Description: Start rclone at boot time\n# Description:       Enable rclone by daemon.\n### END INIT INFO\nNAME=&quot;Alist&quot; #Rclone\u914d\u7f6e\u65f6\u586b\u5199\u7684name\nREMOTE=&#39;Tianyi&#39;  #\u8fdc\u7a0b\u6587\u4ef6\u5939\uff0c\u7f51\u76d8\u91cc\u7684\u6302\u8f7d\u7684\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7559\u7a7a\u4e3a\u6574\u4e2a\u7f51\u76d8\nLOCAL=&#39;\/Tianyi&#39;  #\u6302\u8f7d\u5730\u5740\uff0cVPS\u672c\u5730\u6302\u8f7d\u76ee\u5f55\nLOG=&quot;\/$HOME\/.rclone\/rcloned.log&quot;\nGreen_font_prefix=&quot;\\033[32m&quot; && Red_font_prefix=&quot;\\033[31m&quot; && Green_background_prefix=&quot;\\033[42;37m&quot; && Red_background_prefix=&quot;\\033[41;37m&quot; && Font_color_suffix=&quot;\\033[0m&quot;\nInfo=&quot;${Green_font_prefix}[\u4fe1\u606f]${Font_color_suffix}&quot;\nError=&quot;${Red_font_prefix}[\u9519\u8bef]${Font_color_suffix}&quot;\nRETVAL=0\ncheck_running(){\n\tPID=&quot;$(ps -C $NAME_BIN -o pid= |head -n1 |grep -o &#39;[0-9]\\{1,\\}&#39;)&quot;\n\tif [[ ! -z ${PID} ]]; then\n\t\treturn 0\n\telse\n\t\treturn 1\n\tfi\n}\ndo_start(){\n\tcheck_running\n\tif [[ $? -eq 0 ]]; then\n\t\techo -e &quot;${Info} $NAME_BIN (PID ${PID}) \u6b63\u5728\u8fd0\u884c...&quot; && exit 0\n\telse\n\t\tfusermount -zuq $LOCAL &gt;\/dev\/null 2&gt;&1\n\t\tmkdir -p $LOCAL\n\t\tmkdir -p ${LOG%\/*}\n\t\tsudo \/usr\/bin\/rclone mount -vv $NAME:$REMOTE $LOCAL --copy-links --allow-other --allow-non-empty --umask 000 &gt; &quot;${LOG}&quot; 2&gt;&1 &\n\t\tsleep 2s\n\t\tcheck_running\n\t\tif [[ $? -eq 0 ]]; then\n\t\t\techo -e &quot;${Info} $NAME_BIN \u542f\u52a8\u6210\u529f !&quot;\n\t\telse\n\t\t\techo -e &quot;${Error} $NAME_BIN \u542f\u52a8\u5931\u8d25 !&quot;\n\t\tfi\n\tfi\n}\ndo_stop(){\n\tcheck_running\n\tif [[ $? -eq 0 ]]; then\n\t\tkill -9 ${PID}\n\t\tRETVAL=$?\n\t\tif [[ $RETVAL -eq 0 ]]; then\n\t\t\techo -e &quot;${Info} $NAME_BIN \u505c\u6b62\u6210\u529f !&quot;\n\t\telse\n\t\t\techo -e &quot;${Error} $NAME_BIN \u505c\u6b62\u5931\u8d25 !&quot;\n\t\tfi\n\telse\n\t\techo -e &quot;${Info} $NAME_BIN \u672a\u8fd0\u884c&quot;\n\t\tRETVAL=1\n\tfi\n\tfusermount -zuq $LOCAL &gt;\/dev\/null 2&gt;&1\n}\ndo_status(){\n\tcheck_running\n\tif [[ $? -eq 0 ]]; then\n\t\techo -e &quot;${Info} $NAME_BIN (PID $(echo ${PID})) \u6b63\u5728\u8fd0\u884c...&quot;\n\telse\n\t\techo -e &quot;${Info} $NAME_BIN \u672a\u8fd0\u884c !&quot;\n\t\tRETVAL=1\n\tfi\n}\ndo_restart(){\n\tdo_stop\n\tsleep 2s\n\tdo_start\n}\ncase &quot;$1&quot; in\n\tstart|stop|restart|status)\n\tdo_$1\n\t;;\n\t*)\n\techo &quot;\u4f7f\u7528\u65b9\u6cd5: $0 { start | stop | restart | status }&quot;\n\tRETVAL=1\n\t;;\nesac\nexit $RETVAL<\/code><\/pre><\/div>\n\n\n\n<p>\u4fee\u6539\u5185\u5bb9\uff1a<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>NAME=&quot;Alist&quot; #Rclone\u914d\u7f6e\u65f6\u586b\u5199\u7684name\nREMOTE=&#39;Tianyi&#39;  #\u8fdc\u7a0b\u6587\u4ef6\u5939\uff0c\u7f51\u76d8\u91cc\u7684\u6302\u8f7d\u7684\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u7559\u7a7a\u4e3a\u6574\u4e2a\u7f51\u76d8\nLOCAL=&#39;\/Tianyi&#39;  #\u6302\u8f7d\u5730\u5740\uff0cVPS\u672c\u5730\u6302\u8f7d\u76ee\u5f55<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E7%BD%AE%E5%BC%80%E6%9C%BA%E8%87%AA%E5%90%AF\"><\/span>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>mv rcloned \/etc\/init.d\/rcloned # \u79fb\u52a8\u5230\u8fd9\u4e2a\u76ee\u5f55\u4e0b\uff0c\u5982\u679c\u4e0a\u4e00\u6b65\u662f\u65b0\u5efa\u6587\u4ef6\u7684\u65b9\u5f0f\uff0c\u5219\u8df3\u8fc7\u8fd9\u6b65\nchmod +x \/etc\/init.d\/rcloned # \u7ed9\u6743\u9650\nupdate-rc.d -f rcloned defaults # Debian\/Ubuntu\u6267\u884c\u8fd9\u4e2a\nchkconfig rcloned on # CentOS\u6267\u884c\u8fd9\u4e2a\u548c\u4e0b\u9762\nbash \/etc\/init.d\/rcloned start<\/code><\/pre><\/div>\n\n\n\n<p>\u770b\u5230&nbsp;<code>[\u4fe1\u606f] rclone \u542f\u52a8\u6210\u529f !<\/code>&nbsp;\u5373\u53ef\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E6%8C%82%E8%BD%BD%E5%8F%96%E6%B6%88%E6%8C%82%E8%BD%BD%E8%87%AA%E5%90%AF%E5%8A%A8\"><\/span>\u7ba1\u7406\u6302\u8f7d\/\u53d6\u6d88\u6302\u8f7d\/\u81ea\u542f\u52a8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>\u5f00\u59cb\u6302\u8f7d\u00a0\nbash \/etc\/init.d\/rcloned start\n\n\u505c\u6b62\u6302\u8f7d\u00a0\nbash \/etc\/init.d\/rcloned stop\n\n\u91cd\u65b0\u6302\u8f7d\u00a0\nbash \/etc\/init.d\/rcloned restart\n\n\u67e5\u770b\u65e5\u5fd7\u00a0\ntail -f \/$HOME\/.rclone\/rcloned.log<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8D%B8%E8%BD%BD%E8%87%AA%E5%90%AF%E6%8C%82%E8%BD%BD\"><\/span>\u5378\u8f7d\u81ea\u542f\u6302\u8f7d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>bash \/etc\/init.d\/rcloned stop\nupdate-rc.d -f rcloned remove # Debian\/Ubuntu\nchkconfig rcloned off # CentOS\nrm -f \/etc\/init.d\/rcloned<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E5%AE%9D%E5%A1%94%E8%87%AA%E5%8A%A8%E5%A4%87%E4%BB%BD\"><\/span>\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u9762\u677f\u8bbe\u7f6e\uff0c\u914d\u7f6e\u5230\u5bf9\u5e94\u7684Tianyi\u7f51\u76d8\u7684\u76ee\u5f55\u91cc\uff0c\u52a1\u5fc5\u786e\u8ba4\u5bf9\u5e94<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"529\" height=\"194\" src=\"https:\/\/blog.kimi.ee\/wp-content\/uploads\/image-172.png\" alt=\"\" class=\"wp-image-1725\" srcset=\"https:\/\/blog.kimi.ee\/wp-content\/uploads\/image-172.png 529w, https:\/\/blog.kimi.ee\/wp-content\/uploads\/image-172-300x110.png 300w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/figure>\n\n\n\n<p>\u8ba1\u5212\u4efb\u52a1\u9875\u9762\u91cc\uff0c\u6267\u884c\u300a\u5907\u4efd\u6570\u636e\u5e93\u300b\u6765\u6d4b\u8bd5\u662f\u5426\u6210\u529f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"toc_9\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99\"><\/span>\u53c2\u8003\u8d44\u6599<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/p3terx.com\/go\/aHR0cHM6Ly9yY2xvbmUub3JnL2NvbW1hbmRzL3JjbG9uZV9tb3VudC8=\" target=\"_blank\" rel=\"noreferrer noopener\">rclone \u5b98\u65b9\u6587\u6863<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/p3terx.com\/go\/aHR0cHM6Ly93d3cubW9lcmF0cy5jb20vYXJjaGl2ZXMvNDkxLw==\" target=\"_blank\" rel=\"noreferrer noopener\">\u5728 Debian\/Ubuntu \u4e0a\u4f7f\u7528 rclone \u6302\u8f7d OneDrive \u7f51\u76d8<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p><strong>\u672c\u6587\u4f5c\u8005\uff1a<\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/p3terx.com\/\" target=\"_blank\">P3TERX<\/a><\/p>\n\n\n\n<p><strong>\u539f\u6587\u94fe\u63a5\uff1a<\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/p3terx.com\/archives\/linux-vps-uses-rclone-to-mount-network-drives-such-as-onedrive-and-google-drive.html\" target=\"_blank\">https:\/\/p3terx.com\/archives\/linux-vps-uses-rclone-to-mount-network-drives-such-as-onedrive-and-google-drive.html<\/a><\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alist\u5b89\u88c5&amp;\u914d\u7f6e docke &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"\u3010\u7f51\u76d8\u3011\u901a\u8fc7Webdav\u628aAlist\u7684\u7f51\u76d8\uff08\u5929\u7ffc\uff09\u6302\u8f7d\u5230vps\u6216\u672c\u5730\uff0c\u5e76\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd\" class=\"read-more button\" href=\"https:\/\/blog.kimi.ee\/?p=1723#more-1723\">Read more<span class=\"screen-reader-text\">\u3010\u7f51\u76d8\u3011\u901a\u8fc7Webdav\u628aAlist\u7684\u7f51\u76d8\uff08\u5929\u7ffc\uff09\u6302\u8f7d\u5230vps\u6216\u672c\u5730\uff0c\u5e76\u914d\u7f6e\u5b9d\u5854\u81ea\u52a8\u5907\u4efd<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[94,93,44,96,8,92],"_links":{"self":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts\/1723"}],"collection":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1723"}],"version-history":[{"count":0,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=\/wp\/v2\/posts\/1723\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kimi.ee\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}