{"id":58,"date":"2020-04-22T21:34:22","date_gmt":"2020-04-22T13:34:22","guid":{"rendered":"http:\/\/iotch.xyz\/?p=58"},"modified":"2020-04-22T21:34:22","modified_gmt":"2020-04-22T13:34:22","slug":"%e9%80%9a%e8%bf%87nextcloudsnap%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85-%e8%bf%9b%e8%a1%8c%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.iotch.xyz\/?p=58","title":{"rendered":"\u901a\u8fc7Nextcloudsnap\u4e00\u952e\u5b89\u88c5\u5305 \u8fdb\u884c\u5b89\u88c5"},"content":{"rendered":"\n<p class=\"has-text-color has-vivid-red-color\"><a href=\"https:\/\/sphard.com\/ebooks\/nextcloud\/nextcloud-snap.html\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/sphard.com\/ebooks\/nextcloud\/nextcloud-snap.html<\/a><\/p>\n\n\n\n<p>Nextcloud snap\u4e00\u952e\u5b89\u88c5\u5305: <a href=\"https:\/\/github.com\/nextcloud\/nextcloud-snap\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/github.com\/nextcloud\/nextcloud-snap<\/a><\/p>\n\n\n\n<p>\u5efa\u8bae\u5b89\u88c5 Ubuntu \u7cfb\u7edf, \u56e0\u4e3a\u5b98\u65b9\u4e00\u952e\u5b89\u88c5\u5305\u7528\u7684\u662f Snap, CentOS \u8fd8\u672a\u652f\u6301, \u6240\u4ee5 Ubuntu \u662f\u76ee\u524d\u6700\u7b80\u5355\u7684\u5b89\u88c5\u7cfb\u7edf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo\u00a0apt-get\u00a0update\nsudo\u00a0apt-get\u00a0install\u00a0snap\nsudo\u00a0apt-get\u00a0install\u00a0snapd\nsudo\u00a0snap\u00a0install\u00a0nextcloud\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u8fd9\u65f6\u4f60\u53ef\u4ee5\u4f7f\u7528\u670d\u52a1\u5668 IP \u8bbf\u95ee, \u5982\u679c\u4f60\u60f3\u7528\u57df\u540d\u8bbf\u95ee, \u53ea\u8981\u628a\u57df\u540d\u6307\u5411\u8fd9\u4e2a IP \u5c31\u53ef\u4ee5, \u7528\u57df\u540d\u8bbf\u95ee\u7684\u65f6\u5019 Nextcloud \u5c31\u4f1a\u8be2\u95ee\u4f60\u662f\u5426\u7ed1\u5b9a\u8fd9\u4e2a\u57df\u540d<\/p><\/blockquote>\n\n\n\n<p>\u7b2c\u4e00\u6b21\u8bbf\u95ee, \u4f1a\u63d0\u793a\u4f60\u8bbe\u7f6e\u4e0b\u7ba1\u7406\u5458\u7684\u5e10\u53f7\u548c\u5bc6\u7801<\/p>\n\n\n\n<p>\u542f\u7528 SSL, \u4f7f\u7528 HTTPS \u8bbf\u95ee<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo\u00a0nextcloud.enable-https\u00a0lets-encrypt\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u7cfb\u7edf\u5c31\u4f1a\u81ea\u52a8\u7533\u8bf7 Let's Encrypt \u8bc1\u4e66\u5e76\u542f\u7528<\/p><\/blockquote>\n\n\n\n<p>\u4ee5\u540e\u5347\u7ea7:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo\u00a0snap\u00a0refresh\u00a0nextcloud\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5173\u4e8e\u6570\u636e\u5907\u4efd\">\u5173\u4e8e\u6570\u636e\u5907\u4efd<\/h3>\n\n\n\n<p>\u6570\u636e\u5e93\u6587\u4ef6\u5939\u4f4d\u7f6e: <code>\/var\/snap\/nextcloud\/current\/<\/code><br>\u6570\u636e\u5e93\u6587\u4ef6\u5939\u5305\u542b\u4e86:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Apache, PHP, MySQL, and Redis logs<\/li><li>Keys and certificates<\/li><li>MySQL database<\/li><li>Redis database<\/li><li>Nextcloud config<\/li><li>Any Nextcloud apps installed by the user<\/li><\/ol>\n\n\n\n<p>\u6587\u4ef6\u4fdd\u5b58\u7684\u6587\u4ef6\u5939\u4f4d\u7f6e: <code>\/var\/snap\/nextcloud\/common\/<\/code><br>\u6587\u4ef6\u5939\u5305\u542b\u4e86:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Nextcloud data<\/li><li>Nextcloud logs<\/li><\/ol>\n\n\n\n<p>\u628a\u6570\u636e\u5e93\u548c\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u90fd\u5907\u4efd\u5c31\u53ef\u4ee5\u5566~<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"58\" 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>https:\/\/sphard.com\/ebooks\/nextcloud\/nextcloud-snap.html Nextcloud &#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-58","post","type-post","status-publish","format-standard","hentry","category-ubuntn"],"_links":{"self":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/58","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=58"}],"version-history":[{"count":0,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iotch.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}