{"id":223495,"date":"2020-11-22T19:55:01","date_gmt":"2020-11-22T11:55:01","guid":{"rendered":"http:\/\/4563.org\/?p=223495"},"modified":"2020-11-22T19:55:01","modified_gmt":"2020-11-22T11:55:01","slug":"%e5%9f%ba%e4%ba%8e%e8%85%be%e8%ae%af%e4%ba%91%e8%bd%bb%e9%87%8f%e5%af%b9%e8%b1%a1%e5%ad%98%e5%82%a8-cos%ef%bc%8c%e6%90%ad%e5%bb%ba-nextcloud-%e7%bd%91%e7%9b%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=223495","title":{"rendered":"\u57fa\u4e8e\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u7f51\u76d8"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u57fa\u4e8e\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u7f51\u76d8               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : freecloud <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>Nextcloud \u662f\u4e00\u6b3e\u5f00\u6e90\u514d\u8d39\u7684\u79c1\u6709\u4e91\u5b58\u50a8\u7f51\u76d8\u9879\u76ee\u3002\u5b83\u7684\u5ba2\u6237\u7aef\u8986\u76d6\u4e86 Windows \u3001Mac \u3001Android \u3001iOS \u3001Linux \u7b49\u5404\u79cd\u5e73\u53f0\uff0c\u4e5f\u63d0\u4f9b\u4e86\u7f51\u9875\u7aef\u4ee5\u53ca WebDAV \u63a5\u53e3\u3002<\/p>\n<p>\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos \u67b6\u6784\uff0c\u642d\u5efa nextcloud \u7f51\u76d8\uff0c\u53ef\u4ee5\u4f7f\u7528\u5bf9\u8c61\u5b58\u50a8 cos \u7684\u7075\u6d3b\u5b58\u50a8\u7a7a\u95f4\u914d\u7f6e\u3002\u901a\u8fc7\u5185\u7f51\u4f20\u8f93\uff0c\u8fd8\u53ef\u4ee5\u8282\u7701\u5bf9\u8c61\u5b58\u50a8 cos \u7684\u7f51\u7edc\u4f20\u8f93\u8d39\u7528\u3002<\/p>\n<p><strong>1\uff0c\u8bbf\u95ee\u817e\u8baf\u4e91\u7f51\u7ad9\uff0c\u521b\u5efa\u6216\u8005\u767b\u5f55\u817e\u8baf\u4e91\u8d26\u53f7\u3002<\/strong><\/p>\n<p><strong>2\uff0c\u8d2d\u4e70\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u3002<\/strong><\/p>\n<p><strong>3\uff0c\u521b\u5efa \u5bf9\u8c61\u5b58\u50a8 cos \u5b58\u50a8\u6876\u3002\u6240\u5c5e\u5730\u57df\u9009\u62e9\u548c\u8f7b\u91cf\u76f8\u540c\u5730\u57df\u3002<\/strong><br \/> \u76ee\u524d\uff0c\u4e2a\u4eba\u7528\u6237\u6709\u514d\u8d39 6 \u4e2a\u6708 50GB \u7684\u6807\u51c6\u5b58\u50a8\u5bb9\u91cf\uff0c\u4f01\u4e1a\u7528\u6237\u6709\u514d\u8d39 6 \u4e2a\u6708 1TB \u7684\u6807\u51c6\u5b58\u50a8\u5bb9\u91cf\u3002<br \/> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/20201213_5fd5d619f1a56.jpg\" alt=\"\u57fa\u4e8e\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u7f51\u76d8\" \/><\/p>\n<p><strong>4\uff0c\u6d4b\u8bd5\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u4e0e\u5bf9\u8c61\u5b58\u50a8 cos \u5b58\u50a8\u6876\u4e4b\u95f4\u7684\u8bbf\u95ee\u662f\u5426\u662f\u901a\u8fc7\u5185\u7f51\u8bbf\u95ee<\/strong>\u3002\u76ee\u524d\uff0c\u5bf9\u8c61\u5b58\u50a8 cos \u5185\u7f51\u6d41\u91cf\u514d\u8d39\u3002<\/p>\n<p><strong>\u5b89\u88c5 nslookup \u547d\u4ee4<\/strong><\/p>\n<ol>\n<li>\n<p>Debian \/ Ubuntu<br \/> shell&gt; apt-get install dnsutils<\/p>\n<\/li>\n<li>\n<p>RedHat \/ Fedora \/ Centos<br \/> shell&gt; yum install bind-utils<\/p>\n<\/li>\n<\/ol>\n<p>\u901a\u8fc7 nslookup \u547d\u4ee4\uff0c\u67e5\u770b\u5b58\u50a8\u6876\u8bbf\u95ee\u57df\u540d\u7684\u89e3\u6790 IP \u6765\u5224\u65ad\u8f7b\u91cf\u662f\u5426\u901a\u8fc7\u5185\u7f51\u6765\u8bbf\u95ee\u3002<br \/> shell&gt; nslookup \u5b58\u50a8\u6876\u8bbf\u95ee\u57df\u540d<br \/> \u5982\u679c\u89e3\u6790\u51fa\u6765\u7684 IP \u5730\u5740\u662f\u5185\u7f51\u5730\u5740\u6216\u8005\u4fdd\u7559\u5730\u5740\uff0c\u90a3\u4e48\u662f\u901a\u8fc7\u5185\u7f51\u6765\u8bbf\u95ee\u3002<\/p>\n<p><strong>5\uff0c\u642d\u5efa nextcloud \u7684\u8fd0\u884c\u73af\u5883\u3002<\/strong><br \/> \u4e00\u822c\u5b89\u88c5 LNMP \u6216\u8005 LAMP \u73af\u5883\uff0c\u5c31\u53ef\u4ee5\u8fd0\u884c nextcloud \u7a0b\u5e8f\u3002<\/p>\n<p><strong>6\uff0c\u4e0b\u8f7d\u5e76\u4e0a\u4f20 nextcloud \u7a0b\u5e8f\u5230\u7f51\u7ad9\u76ee\u5f55\u3002<\/strong><br \/> \u901a\u8fc7 ftp \u8f6f\u4ef6\u4e0a\u4f20 nextcloud \u7a0b\u5e8f\u4ee3\u7801\u5230 nextcloud \u7f51\u7ad9\u76ee\u5f55\u3002<\/p>\n<p><strong>7\uff0c\u914d\u7f6e nextcloud \u7f51\u7ad9 config \u76ee\u5f55\u4e0b config.php \u6587\u4ef6<\/strong>\u3002\u5148\u5907\u4efd config.php \u6587\u4ef6\uff0c\u7136\u540e\u6e05\u7a7a\u539f\u6709\u7684\u5185\u5bb9\u5e76\u8f93\u5165\u5982\u4e0b\u5185\u5bb9\u5e76\u6839\u636e\u6ce8\u91ca\u4fee\u6539\u76f8\u5173\u7684\u503c\u3002<\/p>\n<p>shell&gt; cp config.php config.php_bak<br \/> shell&gt; vi config.php<\/p>\n<pre><code>&lt;?php $CONFIG = array(   'objectstore' =&gt; array(     'class' =&gt; '\\OC\\Files\\ObjectStore\\S3',     'arguments' =&gt; array(       'bucket' =&gt; 'nextcloud-1250000000', \/\/ \u5b58\u50a8\u6876\u540d\u79f0\uff08\u7a7a\u95f4\u540d\u79f0\uff09       'autocreate' =&gt; false,       'key'  =&gt; 'AKIDxxxxxxxx', \/\/ \u66ff\u6362\u4e3a\u7528\u6237\u7684 SecretId       'secret' =&gt; 'xxxxxxxxxxxx', \/\/ \u66ff\u6362\u4e3a\u7528\u6237\u7684 SecretKey       'hostname' =&gt; 'cos.&lt;Region&gt;.myqcloud.com', \/\/ \u5c06 &lt;Region&gt; \u4fee\u6539\u4e3a\u6240\u5c5e\u5730\u57df\uff0c\u5982 ap-shanghai       'use_ssl' =&gt; true,     ),   ), ); <\/code><\/pre>\n<p><strong>8\uff0c\u767b\u5f55 nextcloud \u7684\u8bbf\u95ee\u5730\u5740\uff0c\u5e76\u5b89\u88c5 nextcloud \u3002<\/strong><br \/> \u8bbe\u7f6e\u597d nextcloud \u6240\u9700\u7684\u6570\u636e\u5e93\uff0c\u6570\u636e\u5e93\u8d26\u53f7\u548c\u5bc6\u7801\u3002\u8bbf\u95ee nextcloud \u7684 Web Installer \u5730\u5740\uff0c\u5b89\u88c5 nextcloud \u3002<\/p>\n<p><strong>9\uff0c\u6587\u4ef6\u4e0a\u4f20\u6d4b\u8bd5\u3002\u6d4b\u8bd5\u7ed3\u679c\u4ec5\u4f9b\u53c2\u8003\u3002<\/strong><br \/> \u6d4b\u8bd5\u73af\u5883\uff1a\u817e\u8baf\u4e91\u8f7b\u91cf\u4e2d\u56fd\u9999\u6e2f\u8282\u70b9 24 \u5143 \/\u6708\uff0c\u5bf9\u8c61\u5b58\u50a8 COS \u4e2d\u56fd\u9999\u6e2f\u8282\u70b9\uff0c\u4e0a\u4f20\u5ba2\u6237\u7aef\u4f7f\u7528\u4e2d\u56fd\u7535\u4fe1\u5e26\u5bbd\u3002<br \/> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/12\/20201213_5fd5d61d9030c.gif\" alt=\"\u57fa\u4e8e\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u7f51\u76d8\" \/><\/p>\n<p>\u6ce8 1\uff1a\u672c\u6587\u4e2d\u76f8\u5173\u4ea7\u54c1\u914d\u7f6e\u548c\u4ef7\u683c\u4ec5\u4f9b\u53c2\u8003\u3002<br \/> \u6ce8 2\uff1a\u56e0\u6d3b\u52a8\u7684\u65f6\u6548\u6027\uff0c\u4ef7\u683c\u3001\u6298\u6263\u6216\u4ee3\u91d1\u5238\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u52a8\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4493747\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laminux29 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e0a\u4f20\u901f\u5ea6\u5c31\u591f\u6e17\u4eba\u7684\u4e86\uff0c\u66f4\u522b\u63d0\u4e0b\u8f7d\u901f\u5ea6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4493748\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : amrice <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Cos \u5f00\u4e2a cdn \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c&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\/223495"}],"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=223495"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/223495\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223495"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}