{"id":161987,"date":"2020-09-28T00:49:14","date_gmt":"2020-09-27T16:49:14","guid":{"rendered":"http:\/\/4563.org\/?p=161987"},"modified":"2020-09-28T00:49:14","modified_gmt":"2020-09-27T16:49:14","slug":"%e9%80%9a%e8%bf%87%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%a7%81%e6%9c%89%e4%ba%91%e7%9b%98%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=161987","title":{"rendered":"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qzy168 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002<\/p>\n<p><strong>1\uff0c\u521b\u5efa\u6216\u8005\u767b\u5f55\u817e\u8baf\u4e91\u8d26\u53f7<\/strong>\u3002<strong>\u7ed1\u5b9a\u6211\u4eec\u670d\u52a1\u94fe\u63a5\uff0c\u8fd8\u53ef\u4ee5\u518d\u6253\u4e2a\u6298\uff01<\/strong> \uff08\u4e2a\u4eba\u7b7e\u540d\u53ef\u8054\u7cfb\uff09<\/p>\n<p><strong>2\uff0c\u8d2d\u4e70\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\uff0c\u76ee\u524d\u6709\u6d3b\u52a8<\/strong>\u3002<\/p>\n<ol>\n<li>\n<p>\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u4e2d\u56fd\u9999\u6e2f\u673a\u623f\u914d\u7f6e\u548c\u4ef7\u683c <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d20b8192c.jpg\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002\" \/><\/p>\n<\/li>\n<li>\n<p>\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u5317\u4eac \/\u5e7f\u5dde \/\u4e0a\u6d77 \/\u6210\u90fd\u673a\u623f\u8d2d\u4e70 1 \u5e74\u6d3b\u52a8 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d20ff0048.jpg\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002\" \/><\/p>\n<\/li>\n<li>\n<p>\u817e\u8baf\u4e91\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u5317\u4eac \/\u5e7f\u5dde \/\u4e0a\u6d77 \/\u6210\u90fd\u673a\u623f\u8d2d\u4e70 3 \u5e74\u6d3b\u52a8 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d2151aeea.jpg\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002\" \/><\/p>\n<\/li>\n<\/ol>\n<p><strong>3\uff0c\u521b\u5efa \u5bf9\u8c61\u5b58\u50a8 cos \u5b58\u50a8\u6876<\/strong>\u3002<strong>\u6240\u5c5e\u5730\u57df\u9009\u62e9\u548c\u8f7b\u91cf\u76f8\u540c\u5730\u57df<\/strong>\u3002<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 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d2189767a.jpg\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002\" \/><\/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<strong>\u5bf9\u8c61\u5b58\u50a8 cos \u5185\u7f51\u6d41\u91cf\u514d\u8d39<\/strong>\u3002<\/p>\n<p>\u5b89\u88c5 nslookup \u547d\u4ee4<\/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\uff08\u7c7b\u4f3c\uff1axxxxxx \u3002cos \u3002ap-xxxxxxx \u3002myqcloud \u3002com \uff09<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><\/p>\n<p><strong>6\uff0c\u4e0b\u8f7d\u5e76\u4e0a\u4f20 nextcloud \u5230\u7f51\u7ad9\u76ee\u5f55\u3002<\/strong><\/p>\n<p><strong>7\uff0c\u914d\u7f6e nextcloud \u7f51\u7ad9 config \u76ee\u5f55\u4e0b config.php \u6587\u4ef6<\/strong>\u3002<br \/> \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 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><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d21da6a7e.jpg\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\u3002\" \/><\/p>\n<p><strong>8\uff0c\u767b\u5f55 nextcloud \u7684\u8bbf\u95ee\u5730\u5740\uff0c\u5e76\u5b89\u88c5 nextcloud<\/strong><\/p>\n<p><strong>9\uff0c\u6587\u4ef6\u4e0a\u4f20\u6d4b\u8bd5<\/strong>\u3002\u6d4b\u8bd5\u7ed3\u679c\u4ec5\u4f9b\u53c2\u8003\u3002 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/10\/20200930_5f74d222bfb24.gif\" alt=\"\u901a\u8fc7\u817e\u8baf\u4e91\u8f7b\u91cf+\u5bf9\u8c61\u5b58\u50a8 cos\uff0c\u642d\u5efa nextcloud \u79c1\u6709\u4e91\u76d8\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=\"3515815\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liyuans <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e0a\u4f20\u901f\u5ea6\u633a\u5feb\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3515816\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : freecloud <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             cos \u8d70\u5185\u7f51\uff0c\u514d\u6d41\u91cf\u8d39\u5427\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7\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\/161987"}],"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=161987"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/161987\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161987"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}