{"id":2226,"date":"2025-08-04T17:23:02","date_gmt":"2025-08-04T09:23:02","guid":{"rendered":"https:\/\/www.madbull.site\/?p=2226"},"modified":"2025-08-04T18:58:41","modified_gmt":"2025-08-04T10:58:41","slug":"%e4%bd%bf%e7%94%a8omvnextcloud%e6%90%ad%e5%bb%ba%e7%a7%81%e6%9c%89%e4%ba%91","status":"publish","type":"post","link":"https:\/\/www.madbull.site\/?p=2226","title":{"rendered":"\u4f7f\u7528OMV+NextCloud\u642d\u5efa\u79c1\u6709\u4e91"},"content":{"rendered":"\n<p>OpenMediaVault\uff08\u7b80\u79f0OMV\uff09\u662f\u4e00\u6b3e\u57fa\u4e8eDebian\u7684\u5f00\u6e90\u7f51\u7edc\u5b58\u50a8\uff08NAS\uff09\u64cd\u4f5c\u7cfb\u7edf\uff0c\u63d0\u4f9bWeb\u7ba1\u7406\u754c\u9762\uff0c\u652f\u6301\u6587\u4ef6\u5171\u4eab\u3001RAID\u7ba1\u7406\u3001Docker\u3001\u5907\u4efd\u7b49\u670d\u52a1\uff0c\u9002\u5408\u5bb6\u5ead\u548c\u5c0f\u578b\u4f01\u4e1a\u642d\u5efa\u79c1\u6709\u4e91\u5b58\u50a8\u3002<\/p>\n\n\n\n<p>Nextcloud\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u79c1\u6709\u4e91\u5b58\u50a8\u548c\u534f\u4f5c\u5e73\u53f0\uff0c\u63d0\u4f9b\u6587\u4ef6\u540c\u6b65\u3001\u5171\u4eab\u3001\u65e5\u5386\u3001\u8054\u7cfb\u4eba\u3001\u5728\u7ebf\u529e\u516c\u7b49\u529f\u80fd\uff0c\u652f\u6301\u81ea\u6258\u7ba1\uff0c\u4fdd\u969c\u6570\u636e\u9690\u79c1\uff0c\u53ef\u5728\u672c\u5730\u670d\u52a1\u5668\u6216\u4e91\u7aef\u90e8\u7f72\u3002<\/p>\n\n\n\n<p>\u6700\u8fd1\u7528\u8fd9\u4e24\u4e2a\u7ec4\u5408\uff0c\u642d\u5efa\u4e86\u4e00\u4e2a\u5bb6\u5ead\u7528\u7684NAS\u7cfb\u7edf\u3002\u5982\u679c\u4e0d\u8003\u8651\u6570\u636e\u5907\u4efd\uff0c\u76f4\u63a5\u642d\u5efa NextCloud \u5c31\u53ef\u4ee5\u4e86\u3002NextCloud \u63d0\u4f9bdocker\u5316\u5b89\u88c5\u5305\uff0c\u6bd4\u8f83\u65b9\u4fbf\u3002\u624b\u673a\u4e0a\u4e0b\u8f7d\u5ba2\u6237\u7aef\u4e5f\u6bd4\u8f83\u597d\u7528\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1\u3001\u5b89\u88c5 openmediavault<\/h2>\n\n\n\n<p>\u6211\u662f\u7528PVE\u5b89\u88c5\u7684\uff0c\u7ed9\u7684\u786c\u4ef6\u914d\u7f6e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"357\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-1.png\" alt=\"\" class=\"wp-image-2241\"\/><\/figure>\n\n\n\n<p>iso\u7cfb\u7edf\u76f4\u63a5\u4ece\u5b98\u7f51\u4e0b\u8f7d\u5373\u53ef\uff0c<a href=\"https:\/\/www.openmediavault.org\/download.html\">https:\/\/www.openmediavault.org\/download.html<\/a> \u3002\u8fd9\u4e2a\u7cfb\u7edf\u662f\u57fa\u4e8edebian \u7684\uff0c\u5b89\u88c5\u65b9\u6cd5\u548c debian \u4e00\u6837\u5f88\u65b9\u4fbf\u3002\u786c\u4ef6\u5b89\u88c5\uff0c\u8bf7\u81ea\u5df1\u5236\u4f5c\u7cfb\u7edf\u5b89\u88c5\u76d8\u3002<\/p>\n\n\n\n<p>\u7cfb\u7edf\u5b89\u88c5\u540e\u542f\u52a8\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a 80 \u7aef\u53e3\u7684\u7ba1\u7406\u53f0\uff0c\u7528\u6d4f\u89c8\u5668\u8bbf\u95ee\u5373\u53ef\u3002\u9ed8\u8ba4\u8d26\u53f7 admin \u9ed8\u8ba4\u5bc6\u7801 openmediavault\uff0c\u767b\u5f55\u540e\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u81ea\u5df1\u66f4\u6539\u5c31\u53ef\u4ee5\u3002<\/p>\n\n\n\n<p>\u7ba1\u7406\u9875\u9762\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1865\" height=\"770\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-2.png\" alt=\"\" class=\"wp-image-2242\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">2\u3001\u5b89\u88c5compose\u63d2\u4ef6<\/h2>\n\n\n\n<p>2.1\u3001\u9996\u5148\u5b89\u88c5 omv-extras \u5de5\u5177\uff0c\u6ca1\u6709\u8fd9\u4e2a\u5de5\u5177\uff0c<strong>\u7cfb\u7edf \/ \u63d2\u4ef6<\/strong> \u9875\u9762\u4e0d\u63d0\u4f9b openmediavault-compose \u63d2\u4ef6\u7684\u5b89\u88c5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O - https:\/\/github.com\/OpenMediaVault-Plugin-Developers\/packages\/raw\/master\/install | bash<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5\u6210\u529f\u540e\uff0c\u4f1a\u5728 <strong>\u7cfb\u7edf<\/strong> \u83dc\u5355\u4e0b\u6709 omv-extras \u5b50\u83dc\u5355<\/p>\n\n\n\n<p>2.2\u3001\u6253\u5f00 <strong>\u7cfb\u7edf \/ \u63d2\u4ef6<\/strong> \u9875\u9762\uff0c\u627e\u5230 openmediavault-compose \u63d2\u4ef6\uff0c\u70b9\u51fb\u5b89\u88c5\u3002\u5b89\u88c5\u6210\u529f\u540e\uff0c\u5728 <strong>\u670d\u52a1<\/strong> \u83dc\u5355\u9875\u9762\u4e0b\u5c31\u4f1a\u6709 <strong>Compose<\/strong> \u83dc\u5355\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1113\" height=\"697\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-3.png\" alt=\"\" class=\"wp-image-2246\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">3\u3001\u521b\u5efa\u5171\u4eab\u6587\u4ef6\u5939<\/h2>\n\n\n\n<p>3.1\u3001\u5728 <strong>\u5b58\u50a8\u5668 \/ \u6587\u4ef6\u7cfb\u7edf<\/strong> \u683c\u5f0f\u5316\u6570\u636e\u76d8\u3002\u70b9\u51fb \u52a0\u53f7 \u6309\u94ae\uff0c\u9009\u62e9\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u5316\u6570\u636e\u78c1\u76d8\u3002\u6211\u662f\u6302\u8f7d\u4e86\u4e24\u4e2a\u78c1\u76d8\uff0c\u4e00\u4e2a\u505a\u7cfb\u7edf\uff0c\u4e00\u4e2a\u505a\u6570\u636e\u5b58\u50a8\uff0c\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u78c1\u76d8\uff0c\u53ef\u4ee5\u7701\u53bb\u8fd9\u4e00\u6b65\u3002\u4f46\u662f\u53ea\u80fd\u628a\u6570\u636e\u548c\u7cfb\u7edf\u76d8\u5b58\u5728\u4e00\u8d77\uff0c\u65b0\u521b\u5efa\u7684\u5171\u4eab\u6587\u4ef6\u5939\u4f1a\u5728 \u6839\u76ee\u5f55\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-3-color\"><strong>\u6ce8\u610f\uff1a\u6bcf\u6b21\u5728\u7ba1\u7406\u53f0\u64cd\u4f5c\uff0c\u90fd\u4f1a\u63d0\u793a \u90e8\u7f72\uff0c\u70b9\u51fb\u90e8\u7f72\u4e4b\u540e\u624d\u4f1a\u751f\u6548\u3002<\/strong><\/mark><\/p>\n\n\n\n<p>3.2\u3001\u5728 <strong>\u5b58\u50a8\u5668 \/ \u5171\u4eab\u6587\u4ef6\u5939<\/strong> \u521b\u5efa\u5171\u4eab\u76ee\u5f55\uff0c\u7528\u4e8e\u4fdd\u5b58 nextcloud \u7684\u5f15\u64ce\u3001\u4ee3\u7801\u3001\u6570\u636e\u5e93\u3001\u6587\u4ef6\u7b49\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1851\" height=\"487\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-5.png\" alt=\"\" class=\"wp-image-2248\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4\u3001\u4f7f\u7528 compose \u521b\u5efa NextCloud \u865a\u62df\u673a\u3002<\/h2>\n\n\n\n<p>4.1\u3001\u6253\u5f00 <strong>\u670d\u52a1 \/ Compose \/ \u8bbe\u7f6e<\/strong> \u9875\u9762\uff0c\u6dfb\u52a0 Compose \u5171\u4eab\u6587\u4ef6\u5b58\u50a8\u5730\u5740\u3001\u6240\u6709\u8005\u3001\u6743\u9650\uff0c\u5176\u4ed6\u9009\u9879\u53ef\u4ee5\u9009\u62e9\u9ed8\u8ba4\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1141\" height=\"649\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-6.png\" alt=\"\" class=\"wp-image-2249\"\/><\/figure>\n\n\n\n<p>4.2\u3001\u7f16\u5199 compose.yml \u6587\u4ef6\u3002\u5728 <strong>\u670d\u52a1 \/ Compose \/ \u6587\u4ef6<\/strong> \u9875\u9762\uff0c\u70b9\u51fb <strong>\u52a0\u53f7<\/strong> \u6309\u94ae\u6dfb\u52a0\u914d\u7f6e\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1388\" height=\"669\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-7.png\" alt=\"\" class=\"wp-image-2250\"\/><\/figure>\n\n\n\n<p>yml \u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\u3002\u9700\u8981\u81ea\u5df1\u4fee\u6539\u4e00\u4e0b\u8fd9\u51e0\u4e2a\u914d\u7f6e\u624d\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<p>a\u3001MYSQL_ROOT_PASSWORD \u3001 MYSQL_USER \u3001 MYSQL_PASSWORD \u8fd9\u4e09\u4e2a\u53d8\u91cf\u8bbe\u7f6e mysql \u8d26\u53f7\u548c\u5bc6\u7801\uff0c\u9700\u8981\u81ea\u5df1\u8bbe\u5b9a\u3002<\/p>\n\n\n\n<p>b\u3001\/srv\/dev-disk-by-uuid-yourrealdeviceuuid\/compose \u76ee\u5f55\u6839\u636e\u81ea\u5df1\u5171\u4eab\u76ee\u5f55\u771f\u5b9e\u5730\u5740\u586b\u5199\u3002\u5728\u7b2c3.2\u8282\u7684\u622a\u56fe\u4e2d\uff0c\u53ef\u4ee5\u627e\u5230\u5177\u4f53\u8def\u5f84\u3002\u4e4b\u6240\u4ee5\u4ecedocker\u6620\u5c04\u51fa\u6765\uff0c\u662f\u4e3a\u4e86\u65b9\u4fbf\u4fdd\u5b58\u5f15\u64ce\u3001\u914d\u7f6e\u3001\u6570\u636e\u5e93\u548c\u6587\u4ef6\u3002\u4e5f\u65b9\u4fbf\u4ee5\u540e\u5907\u4efd\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: '3.8'\nservices:\n  nextcloud:\n    image: nextcloud:stable\n    container_name: nextcloud\n    restart: unless-stopped\n    ports:\n      - \"8080:80\"\n    volumes:\n      - \/srv\/dev-disk-by-uuid-yourrealdeviceuuid\/compose\/nextcloud\/html:\/var\/www\/html\n      - \/srv\/dev-disk-by-uuid-yourrealdeviceuuid\/compose\/nextcloud\/data:\/var\/www\/html\/data\n      - \/srv\/dev-disk-by-uuid-yourrealdeviceuuid\/compose\/nextcloud\/config:\/var\/www\/html\/config\n    environment:\n      - MYSQL_HOST=nextcloud-db\n      - MYSQL_DATABASE=nextcloud\n      - MYSQL_USER=inputyouruser\n      - MYSQL_PASSWORD=inputyourpassword\n      - NEXTCLOUD_TRUSTED_DOMAINS=inputyourDomainOrIP\n      - REDIS_HOST=nextcloud-redis\n      - REDIS_PORT=6379\n      - REDIS_HOST_PORT=6379\n    depends_on:\n      - nextcloud-db\n\n  nextcloud-db:\n    image: mariadb:10.6\n    container_name: nextcloud-db\n    restart: unless-stopped\n    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW\n    volumes:\n      - \/srv\/dev-disk-by-uuid-yourrealdeviceuuid\/compose\/nextcloud\/db:\/var\/lib\/mysql\n    environment:\n      - MYSQL_ROOT_PASSWORD=inputyourrootpassword\n      - MYSQL_DATABASE=nextcloud\n      - MYSQL_USER=inputyouruser\n      - MYSQL_PASSWORD=inputyourpassword\n\n  redis:\n    image: redis:alpine\n    container_name: nextcloud-redis\n    restart: unless-stopped<\/code><\/pre>\n\n\n\n<p>\u4fdd\u5b58\u5b8c\u914d\u7f6e\u540e\uff0c\u53ef\u4ee5\u70b9\u51fb <strong>\u68c0\u67e5<\/strong> \u6765\u67e5\u770b\u662f\u5426yml\u683c\u5f0f\u5b58\u5728\u95ee\u9898\uff0c\u70b9\u51fb <strong>\u4e0a\u7ebf<\/strong>\uff0c\u6765\u542f\u52a8 NextCloud\u3002<\/p>\n\n\n\n<p>\u9996\u6b21\u542f\u52a8\u9700\u8981\u4e0b\u8f7d\u955c\u50cf\uff0c\u5982\u679c\u56e0\u4e3a\u955c\u50cf\u5931\u8d25\uff0c\u53ef\u4ee5\u6dfb\u52a0\u56fd\u5185\u955c\u50cf\u6e90\uff0c\u5177\u4f53\u65b9\u6cd5\u53c2\u770b\u5f80\u671f\u6587\u7ae0\uff1a<a href=\"https:\/\/www.madbull.site\/?p=2060\">https:\/\/www.madbull.site\/?p=2060<\/a> \u5728 <strong>\u5b89\u88c5\u8fd0\u884c<\/strong> \u7ae0\u8282\u6709\u914d\u7f6e\u56fd\u5185\u955c\u50cf\u6e90 \u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1660\" height=\"473\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-8.png\" alt=\"\" class=\"wp-image-2251\"\/><\/figure>\n\n\n\n<p>\u542f\u52a8\u6210\u529f\u540e\uff0c\u63d0\u4f9b 8080 \u7aef\u53e3\u7684\u7ba1\u7406\u9875\u9762\uff0c\u53ef\u901a\u8fc7\u6d4f\u89c8\u5668\u76f4\u63a5\u8bbf\u95ee http:\/\/xx.xx.xx.xx:8080 \u3002<\/p>\n\n\n\n<p>\u9996\u6b21\u767b\u5f55\u540e\uff0c\u9700\u8981\u521b\u5efa\u4e86 \u8d26\u53f7 \u3001 \u5bc6\u7801\uff0c\u7136\u540e\u7cfb\u7edf\u81ea\u5df1\u521d\u59cb\u5316\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1865\" height=\"397\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111-9.png\" alt=\"\" class=\"wp-image-2252\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">5\u3001\u624b\u673a\u4e0b\u8f7d nextclud \u5ba2\u6237\u7aef\u8bbf\u95ee<\/h2>\n\n\n\n<p>\u53ef\u4ee5\u81ea\u5df1\u5728 \u624b\u673a\u8f6f\u4ef6\u5546\u57ce \u641c\u7d22 nextcloud \uff0c\u4e0b\u8f7d\u5b89\u88c5\u5373\u53ef\u4f7f\u7528\uff0c\u548c\u9875\u9762\u767b\u5f55\u7c7b\u4f3c\u3002<\/p>\n\n\n\n<p>\u624b\u673a\u8f6f\u4ef6\u5546\u57ce\u6ca1\u6709\uff0c\u53ef\u4ee5\u53bb\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5ba2\u6237\u7aef\uff1a<a href=\"https:\/\/nextcloud.com\/install\/#desktop-files\">https:\/\/nextcloud.com\/install\/#desktop-files<\/a><\/p>\n\n\n\n<p>\u5173\u4e8e\u5ba2\u6237\u7aef\u7684\u4f7f\u7528\u3001\u6570\u636e\u5907\u4efd\u7b49\uff0c\u90a3\u5c31\u81ea\u5df1\u63a2\u7d22\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenMediaVault\uff08\u7b80\u79f0OMV\uff09\u662f\u4e00\u6b3e\u57fa\u4e8eDebian\u7684\u5f00\u6e90\u7f51\u7edc\u5b58\u50a8\uff08NAS\uff09\u64cd\u4f5c\u7cfb\u7edf\uff0c\u63d0\u4f9bWeb\u7ba1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":445,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template-my","format":"standard","meta":{"footnotes":""},"categories":[135,131],"tags":[237,674,675,676],"class_list":["post-2226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-131","tag-linux","tag-nas","tag-nextcloud","tag-omv"],"_links":{"self":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2226"}],"version-history":[{"count":10,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2226\/revisions"}],"predecessor-version":[{"id":2258,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2226\/revisions\/2258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/media\/445"}],"wp:attachment":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}