{"id":72,"date":"2020-04-22T21:44:27","date_gmt":"2020-04-22T13:44:27","guid":{"rendered":"http:\/\/iotch.xyz\/?p=72"},"modified":"2020-04-22T21:44:27","modified_gmt":"2020-04-22T13:44:27","slug":"ubuntu%e7%b3%bb%e7%bb%9f%e4%b8%8b%e6%90%ad%e5%bb%ba%e8%87%aa%e5%b7%b1%e7%9a%84%e7%bd%91%e7%9b%98-nextcloud","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=72","title":{"rendered":"Ubuntu\u7cfb\u7edf\u4e0b\u642d\u5efa\u81ea\u5df1\u7684\u7f51\u76d8&#8212;-Nextcloud"},"content":{"rendered":"\n<p class=\"has-text-color has-vivid-red-color\"><\/p>\n\n\n\n<p>\u57fa\u4e8e\u73b0\u5728\u7f51\u7edc\u4e0a\u516c\u6709\u7684\u7f51\u76d8\u5e94\u7528\u90a3\u4e48\u7684\u4e0d\u5b89\u5168\uff08\u5173\u95ed\u3001\u6cc4\u5bc6\uff09,\u771f\u7684\u4e0d\u77e5\u5230\u81ea\u5df1\u4e0a\u4f20\u7684\u4e1c\u897f\u4f1a\u88ab\u7528\u5728\u4f55\u5904\uff0c\u4f1a\u88ab\u5bf9\u8c01\u516c\u5f00\uff0c\u56e0\u6b64\u642d\u5efa\u4e00\u4e2a\u81ea\u5df1\u7684\u79c1\u4eba\u7f51\u76d8\u7528\u6765\u5b58\u81ea\u5df1\u79c1\u5bc6\u7684\u4fe1\u606f\u8fd8\u662f\u6bd4\u8f83\u6709\u5fc5\u8981\u7684\uff0c\u672c\u6587\u5c31\u662f\u57fa\u4e8enextclound\u5f00\u6e90\u7684\u7f51\u76d8\u5e94\u7528\u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684\u79c1\u4eba\u7f51\u76d8\u3002<br>1\u3001\u5b89\u88c5Ubuntu\u7cfb\u7edf\uff0c\u8fd9\u91cc\u4f7f\u7528Ubuntu 16.04.5 LTS<br>\u4e0b\u8f7d\u5730\u5740\uff1ahttp:\/\/releases.ubuntu.com\/16.04\/<br>\u5b89\u88c5\u6b65\u9aa4\u53ef\u4ee5\u53c2\u8003\u7f51\u4e0a\u8d44\u6599\uff1ahttps:\/\/blog.csdn.net\/c__chao\/article\/details\/54868914<br>2\u3001\u5b89\u88c5nextclound<br>\u6709\u4e24\u79cd\u65b9\u6cd5\u5b89\u88c5nextclound\uff1a\u624b\u52a8\u5b89\u88c5\u548csnap\u5b89\u88c5\uff08snap\u4e0eapt\u3001yum\u7c7b\u578b\u7684\u5bb9\u5668\uff09<br>\u8fd9\u91cc\u4f7f\u7528\u7684\u662fsnap\u50bb\u74dc\u5f0f\u5b89\u88c5<br>a\u3001\u5982\u679c\u4e0d\u662froot\u6743\u9650\uff0c\u5207\u6362\u5230root\uff08\u8bbe\u7f6eroot\u6743\u9650\uff1asudo passwd root\uff09<br>sudo su root\uff08\u5207\u6362\u5230root\u6743\u9650\uff09<br>\u53c2\u8003\uff1ahttps:\/\/blog.csdn.net\/u013566528\/article\/details\/84756056<br>b\u3001\u66f4\u65b0ubuntu\u53ca\u5b89\u88c5snap<br>apt-get update<br>apt-get install snap<br>apt-get install snapd<br>c\u3001\u5b89\u88c5nextclound<br>snap install nextclound<br>\u6b64\u6b65\u4e0b\u8f7d\u6709\u53ef\u80fd\u5f88\u6162\uff0c\u7b14\u8005\u5b89\u88c5\u7684\u65f6\u5019\u9700\u89811\u4e2a\u591a\u5c0f\u65f6\uff0c\u800c\u4e14\u8fd8\u5b89\u88c5\u5931\u8d25\uff0c\u53ef\u662f\u4e0d\u8981\u653e\u5f03\uff0c\u91cd\u6765\u51e0\u6b21<\/p>\n\n\n\n<p>d\u3001\u8bbf\u95eenextclound<br>\u8bbf\u95ee\u5bf9\u5e94\u5b89\u88c5nextclound\u7684ip(http:\/\/ip\u5730\u5740\/)\u5373\u53ef\u8fdb\u5165nextclound\u7684\u5b89\u88c5\u754c\u9762<br>\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801<\/p>\n\n\n\n<p>\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u4e4b\u540e\u767b\u9646\uff0c\u548c\u4e00\u822c\u7684\u7f51\u76d8\u5c31\u6ca1\u4ec0\u4e48\u533a\u522b\u4e86\uff0c\u53ef\u4ee5\u4e0a\u4f20\u4e0b\u8f7d\u5bf9 \u5e94\u7684\u6587\u4ef6<\/p>\n\n\n\n<p>3\u3001\u5176\u4ed6\u64cd\u4f5c<br>a\u3001\u4e0a\u4f20\u6587\u4ef6\u7684\u4fdd\u5b58\u4f4d\u7f6e<br>\/var\/snap\/nextcloud\/common\/nextcloud\/data\/,\u5728\u8be5\u8def\u5f84\u4e0b\u4f1a\u751f\u6210\u4e00\u4e2a\u5bf9\u5e94\u7528\u6237\u7684\u6587\u4ef6\u5939<\/p>\n\n\n\n<p>\u5728\u7528\u6237\u6587\u4ef6\u5939\u4e0b\u9762\u4e2d\u6709\u4e00\u4e2a\u201cfiles\u201d\u547d\u540d\u7684\u6587\u4ef6\u5939\uff0c\u8be5\u6587\u4ef6\u5939\u5c31\u662f\u5bf9\u5e94\u7528\u6237\u4e0a\u4f20\u7684\u6587\u4ef6<br>b\u3001\u4fee\u6539\u7528\u6237\u4e0a\u4f20\u6587\u4ef6\u7684\u4fdd\u5b58\u4f4d\u7f6e<br>\u5728\/var\/snap\/nextcloud\/9868\/nextcloud\/config\/\u8def\u5f84\u4e0b\u9762\u6709\u4e00\u4e2aconfig.php\uff0c\u7528gedit\u6253\u5f00\uff0c\u5728\u91cc\u9762\u627e\u5230\u5173\u952e\u5b57\uff1adatadirectory\uff0c\u540e\u9762\u7684\u8def\u5f84\u5c31\u662f\u4fdd\u5b58\u7528\u6237\u4e0a\u4f20\u6570\u636e\u7684\u8def\u5f84\uff0c\u5c06\u540e\u9762\u7684\u8def\u5f84\u4fee\u6539\u4e3a\u81ea\u5df1\u5b9a\u4e49\u4fdd\u5b58\u6570\u636e\u7684\u8def\u5f84\u3002\u91cd\u542fnextclound\uff1asnap restart nextcloud<br>\u5373\u53ef\u3002<br>c\u3001\u4fee\u6539\u4e0a\u4f20\u6587\u4ef6\u7684\u9650\u5236<br>nextcloud\u81ea\u8eab\u9650\u5236\u4e3a511M<br>\u4fee\u6539\/snap\/nextcloud\/9868\/config\/php\/php.ini\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u9650\u5236<br>\uff081\uff09\u8fde\u63a5\u65f6\u95f4 max_execution_time<br>max_execution_time \u9ed8\u8ba4\u662f30\u79d2.\u6539\u4e3a max_execution_time = 0 0\u8868\u793a\u6ca1\u6709\u9650\u5236<br>\uff082\uff09 post_max_size \u8bbe\u5b9a POST \u6570\u636e\u6240\u5141\u8bb8\u7684\u6700\u5927\u5927\u5c0f<br>\u5982\u679c POST \u6570\u636e\u5c3a\u5bf8\u5927\u4e8e post_max_size $_POST \u548c $_FILES superglobals \u4fbf\u4f1a\u4e3a\u7a7a.<br>\u53ef\u8bbe\u7f6e\u4e3a\u9700\u8981\u7684\u503c post_max_size = 150M<br>\uff083\uff09 upload_max_filesize \u8868\u793a\u6240\u4e0a\u4f20\u7684\u6587\u4ef6\u7684\u6700\u5927\u5927\u5c0f\u3002<br>upload_max_filesize = 100M<br>\u53e6\u5916\u8981\u8bf4\u660e\u7684\u662f,post_max_size \u5927\u4e8e upload_max_filesize \u4e3a\u4f73.<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-red-color\">\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300c\u8ff7\u5931\u7684\u7b28\u5c0f\u5b69\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faa CC 4.0 BY-SA \u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/blog.csdn.net\/u013566528\/java\/article\/details\/84756436\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/blog.csdn.net\/u013566528\/java\/article\/details\/84756436<\/a><\/p>\n<button class=\"simplefavorite-button\" data-postid=\"72\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e\u73b0\u5728\u7f51\u7edc\u4e0a\u516c\u6709\u7684\u7f51\u76d8\u5e94\u7528\u90a3\u4e48\u7684\u4e0d\u5b89\u5168\uff08\u5173\u95ed\u3001\u6cc4\u5bc6\uff09,\u771f\u7684\u4e0d\u77e5\u5230\u81ea\u5df1\u4e0a\u4f20\u7684\u4e1c\u897f\u4f1a\u88ab\u7528\u5728\u4f55\u5904\uff0c\u4f1a\u88ab\u5bf9\u8c01\u516c\u5f00\uff0c\u56e0\u6b64\u642d\u5efa\u4e00\u4e2a\u81ea\u5df1\u7684\u79c1\u4eba &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-ubuntn"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}