{"id":928,"date":"2024-08-29T17:27:46","date_gmt":"2024-08-29T09:27:46","guid":{"rendered":"https:\/\/nnn.ink:368\/?p=928"},"modified":"2024-08-29T17:27:47","modified_gmt":"2024-08-29T09:27:47","slug":"%e8%ae%be%e7%bd%ae-clouddrive-%e5%bc%80%e6%9c%ba%e8%87%aa%e5%90%af","status":"publish","type":"post","link":"https:\/\/www.biyuntang.com\/?p=928","title":{"rendered":"\u8bbe\u7f6e .\/clouddrive \u5f00\u673a\u81ea\u542f"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">1. <strong>\u521b\u5efa systemd \u670d\u52a1\u6587\u4ef6<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 systemd \u670d\u52a1\u6587\u4ef6\uff0c\u4f8b\u5982 <code>clouddrive.service<\/code>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo nano \/etc\/systemd\/system\/clouddrive.service\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u7f16\u8f91\u670d\u52a1\u6587\u4ef6<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6587\u4ef6\u4e2d\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff0c\u786e\u4fdd\u8def\u5f84\u548c\u547d\u4ee4\u6b63\u786e\u65e0\u8bef\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ini\u590d\u5236\u4ee3\u7801<code>[Unit]\nDescription=CloudDrive Service\nAfter=network.target\n\n[Service]\nExecStart=\/root\/clouddrive-2-linux-x86_64-0.7.12\/clouddrive\nWorkingDirectory=\/root\/clouddrive-2-linux-x86_64-0.7.12\/\nRestart=always\nUser=root\n\n[Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u4fdd\u5b58\u5e76\u9000\u51fa<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6309 <code>Ctrl + X<\/code>\uff0c\u7136\u540e\u6309 <code>Y<\/code> \u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u91cd\u65b0\u52a0\u8f7d systemd \u670d\u52a1\u914d\u7f6e<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4f7f systemd \u8bc6\u522b\u65b0\u7684\u670d\u52a1\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl daemon-reload\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u542f\u7528\u5f00\u673a\u81ea\u542f\u52a8<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u542f\u7528 <code>clouddrive<\/code> \u7684\u5f00\u673a\u81ea\u542f\u52a8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl enable clouddrive.service\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u7acb\u5373\u542f\u52a8\u670d\u52a1<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u4e5f\u53ef\u4ee5\u7acb\u5373\u542f\u52a8\u8be5\u670d\u52a1\u6765\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl start clouddrive.service\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7. <strong>\u68c0\u67e5\u670d\u52a1\u72b6\u6001<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u540e\uff0c\u68c0\u67e5\u670d\u52a1\u662f\u5426\u6b63\u5e38\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl status clouddrive.service\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u670d\u52a1\u542f\u52a8\u6b63\u5e38\uff0c<code>clouddrive<\/code> \u5c06\u5728\u6bcf\u6b21\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b <code>systemctl<\/code> \u547d\u4ee4\u6765\u6682\u505c\u6216\u91cd\u542f <code>clouddrive<\/code> \u670d\u52a1\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6682\u505c\u670d\u52a1\uff08\u505c\u6b62\u8fd0\u884c\uff09<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6682\u505c <code>clouddrive<\/code> \u670d\u52a1\uff0c\u5373\u505c\u6b62\u5b83\u7684\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl stop clouddrive.service\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u91cd\u542f\u670d\u52a1<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u60f3\u8981\u91cd\u542f <code>clouddrive<\/code> \u670d\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl restart clouddrive.service\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u67e5\u770b\u670d\u52a1\u72b6\u6001<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u968f\u65f6\u68c0\u67e5\u670d\u52a1\u7684\u72b6\u6001\uff0c\u770b\u770b\u5b83\u662f\u5426\u6b63\u5728\u8fd0\u884c\u6216\u662f\u5426\u9047\u5230\u95ee\u9898\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bash\u590d\u5236\u4ee3\u7801<code>sudo systemctl status clouddrive.service\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u8fd9\u4e9b\u547d\u4ee4\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u7ba1\u7406 <code>clouddrive<\/code> \u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u521b\u5efa systemd \u670d\u52a1\u6587\u4ef6 \u521b\u5efa\u4e00\u4e2a\u65b0\u7684 systemd \u670d\u52a1\u6587\u4ef6\uff0c\u4f8b\u5982 clouddrive.service\u3002 bash\u590d\u5236\u4ee3\u7801sudo nano \/etc\/systemd\/system\/&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","hentry","category-linux","category-vps"],"_links":{"self":[{"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=928"}],"version-history":[{"count":1,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions"}],"predecessor-version":[{"id":929,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions\/929"}],"wp:attachment":[{"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biyuntang.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}