{"id":3851,"date":"2026-03-23T16:57:52","date_gmt":"2026-03-23T08:57:52","guid":{"rendered":"https:\/\/yowlab.idv.tw\/wordpress\/?p=3851"},"modified":"2026-03-23T17:00:25","modified_gmt":"2026-03-23T09:00:25","slug":"nextcloud-%e6%ad%b7%e5%8f%b2%e7%89%88%e6%9c%ac%e6%aa%94%e6%a1%88%e7%9a%84%e6%b8%85%e7%90%86","status":"publish","type":"post","link":"https:\/\/yowlab.idv.tw\/wordpress\/?p=3851","title":{"rendered":"Nextcloud \u6b77\u53f2\u7248\u672c\u6a94\u6848\u7684\u6e05\u7406"},"content":{"rendered":"<p>\u4f7f\u7528 Nextcloud \u5df2\u7d93\u597d\u9577\u4e00\u6bb5\u6642\u65e5\uff0c\u6240\u4ee5\u7d2f\u7a4d\u4e86\u4e0d\u5c11\u6a94\u6848\u3002<\/p>\n<p>Nextcloud \u88e1\u9762\u5c0d\u65bc\u6a94\u6848\u6709\u500b\u8cbc\u5fc3\u529f\u80fd\uff0c\u4fbf\u662f\u53ef\u4ee5\u5f80\u524d\u56de\u6eaf\u66f4\u52d5\u524d\u7248\u672c\u3002<br \/>\n\u9019\u529f\u80fd\u4e4b\u6240\u4ee5\u8cbc\u5fc3\u8207\u795e\u5947\u7684\u5730\u65b9\u5728\u65bc\u300c\u5efa\u7acb\u6a94\u6848\u526f\u672c\u300d\uff0c\u6240\u4ee5\u5e7e\u5e74\u4e0b\u4f86\uff0c\u6a94\u6848\u526f\u672c\u76f8\u7576\u591a\uff0c\u76f8\u5c0d\u7684\u5403\u6389\u8a31\u591a\u786c\u789f\u7a7a\u9593\u3002<\/p>\n<p>\u6700\u8fd1\uff0c\u56e0\u70ba\u7db2\u7ad9\u9700\u8981\u642c\u5bb6\uff0c\u5728\u642c\u79fb\u7684\u6642\u5019\uff0c\u9019\u4e9b\u4e0d\u5fc5\u8981\u7684\u5c0f\u6a94\u6848\uff0c\u53c8\u6703\u5403\u6389\u8a31\u591a\u5bf6\u8cb4\u7684\u6642\u9593\u3002<\/p>\n<style type=\"text\/css\">\nli.present01 {line-height:2em; background-color:#F5E5C9; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\nli.present02 {line-height:2em; background-color:#ceffbc; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\nli.present03 {line-height:1.5em; background-color:#b3dffa; padding:5px; border-radius:10px; font-weight:bold; margin:5px;}\nul.none {list-style-type:none;line-height:1.5em; padding:10px;}\nol.lower-alpha {list-style-type:lower-alpha;}\nol.lower-roman {list-style-type:lower-roman;}\nul.note {line-height:1.5em; padding:2px; font-weight:bold; font-size:0.9em;}\n.highlight01 {font-weight:bold; line-height:1.5em; background-color:#e7f49c; padding:0px 2px; border:1px; border-radius:10px;}\n.highlight02 {font-weight:bold; line-height:1.5em; background-color:#F2F26B; padding:1px 1px; border:1px;}\n.highlight03 {font-weight:bold; line-height:1.5em; background-color:#F9BF72; padding:3px 10px; border:2px; border-radius:10px;}\n.highlight04 {font-weight:bold; line-height:1.5em; background-color:#F9BF72; padding:3px 10px 0px 10px; border:0px; border-radius:3px;}\n.box01 {margin: 5px; border:1px #19130B solid; border-radius:5px; padding:10px;}\n.box02 {margin: 5px; font-weight:bold; line-height:1.5em; padding:10px; border:1px #19130B solid; border-radius:5px; float: left;}\nh3 {border:2px #000 solid; border-width:0px 0px 1px 0px; padding-width:0px 0px 3px 0px;}\nh4 {border:2px #000 solid; border-width:0px 0px 1px 0px; padding-width:0px 0px 3px 0px;}\npre { margin: 0px; padding:0px 5px; border:2px soild #000; }<\/p>\n<\/style>\n<p>\u6240\u4ee5\uff0c\u6211\u7684\u9700\u6c42\u6709\u4e8c\uff0c\u4e00\u662f\u6e05\u7406\u6389\u6a94\u6848\u70ba\u4e86\u56de\u5fa9\u7248\u672c\u6240\u7522\u751f\u7684\u526f\u672c\u6a94\u6848\uff0c\u4e8c\u662f\u81ea\u52d5\u5316\uff0c\u8b93\u7cfb\u7d71\u53ef\u4ee5\u81ea\u52d5\u6e05\u7406\u3002\uff08\u9806\u4fbf\u6e05\u7406\u5783\u573e\u6876\uff09<\/p>\n<ol>\n<li class=\"present01\">\u6e05\u7406\u70ba\u4e86\u56de\u5fa9\u7248\u672c\u6240\u7522\u751f\u7684\u526f\u672c\u6a94\u6848<\/li>\n<pre><code>\r\n    sudo sudo -u www-data php  \u76ee\u9304\/nextcloud\/occ versions:cleanup  ## \u5168\u90e8\u6e05\u7406\r\n\r\n    sudo sudo -u www-data php  \u76ee\u9304\/nextcloud\/occ versions:cleanup  <\u76ee\u6a19\u5e33\u865f> >## \u91dd\u5c0d\u76ee\u6a19\u5e33\u865f\u7684\u6a94\u6848\u7684\u6e05\u7406\r\n  <\/code><\/pre>\n<p>&nbsp;<\/p>\n<li class=\"present01\">\u81ea\u52d5\u5316\uff0c\u8b93\u7cfb\u7d71\u53ef\u4ee5\u81ea\u52d5\u6e05\u7406\uff08\u9806\u4fbf\u6e05\u7406\u5783\u573e\u6876\uff09<\/li>\n<p>    \u5728 config.php \u6a94\u6848\u4e2d\uff0c\u52a0\u5165\u4ee5\u4e0b\u8a2d\u5b9a\uff1a<\/p>\n<pre><code>\r\n    \/\/ \u6a94\u6848\u6b77\u53f2\u7248\u672c\u6e05\u7406\u898f\u5247\uff1a\u8a2d\u5b9a\u70ba\u81ea\u52d5\u7ba1\u7406\uff0c\u4e14\u7248\u672c\u6700\u591a\u4fdd\u75597\u5929\r\n    'versions_retention_obligation' => 'auto, 7',\r\n\r\n    \/\/ \u5783\u573e\u6876\u6e05\u7406\u898f\u5247\uff1a\u8a2d\u5b9a\u70ba\u81ea\u52d5\u7ba1\u7406\uff0c\u4e14\u6a94\u6848\u6700\u591a\u4fdd\u75597 \u5929\r\n    'trashbin_retention_obligation' => 'auto, 7',\r\n\r\n   \/\/ \u5099\u8a3b\uff1a\u5982\u679c\u60a8\u5e0c\u671b\u5f37\u5236\u300c\u6700\u5c11\u4fdd\u7559 7 \u5929\uff0c\u6700\u591a\u4fdd\u7559 30 \u5929\u300d\uff0c\u5247\u53ef\u4ee5\u6539\u5beb\u5982\u4e0b\uff1a\r\n   \/\/ 'trashbin_retention_obligation' => '7, 30',\r\n\r\n <\/code><\/pre>\n<p>&nbsp;<\/p>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 Nextcloud \u5df2\u7d93\u597d\u9577\u4e00\u6bb5\u6642\u65e5\uff0c\u6240\u4ee5\u7d2f\u7a4d\u4e86\u4e0d\u5c11\u6a94\u6848\u3002 Nextclou <a class=\"more-link\" href=\"https:\/\/yowlab.idv.tw\/wordpress\/?p=3851\">Continue reading <span class=\"screen-reader-text\">  Nextcloud \u6b77\u53f2\u7248\u672c\u6a94\u6848\u7684\u6e05\u7406<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[74],"class_list":["post-3851","post","type-post","status-publish","format-standard","hentry","category-3","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3851"}],"version-history":[{"count":6,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3851\/revisions"}],"predecessor-version":[{"id":3857,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3851\/revisions\/3857"}],"wp:attachment":[{"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yowlab.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}