{"id":52265,"date":"2024-10-09T01:11:14","date_gmt":"2024-10-08T17:11:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/52265\/"},"modified":"2024-11-14T10:39:40","modified_gmt":"2024-11-14T02:39:40","slug":"ubuntu-%e4%b8%8b%e5%ae%89%e8%a3%9d-syncthing%ef%bc%8c%e6%90%ad%e5%bb%ba%e5%b1%ac%e6%96%bc%e8%87%aa%e5%b7%b1%e7%9a%84%e7%a7%81%e6%9c%89%e7%b6%b2%e7%9b%a4","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/52265\/","title":{"rendered":"Ubuntu \u4e0b\u5b89\u88dd Syncthing\uff0c\u642d\u5efa\u5c6c\u65bc\u81ea\u5df1\u7684\u79c1\u6709\u7db2\u76e4"},"content":{"rendered":"<h1 id=\"ubuntu-%e4%b8%8b%e5%ae%89%e8%a3%9d-syncthing%ef%bc%8c%e6%90%ad%e5%bb%ba%e5%b1%ac%e6%96%bc%e8%87%aa%e5%b7%b1%e7%9a%84%e7%a7%81%e6%9c%89%e7%b6%b2%e7%9b%a4-awmvdIzBWf\">Ubuntu \u4e0b\u5b89\u88dd Syncthing\uff0c\u642d\u5efa\u5c6c\u65bc\u81ea\u5df1\u7684\u79c1\u6709\u7db2\u76e4<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u4f4d\u5316\u7684\u6642\u4ee3\uff0c\u6578\u64da\u7684\u5b89\u5168\u6027\u548c\u53ef\u8a2a\u554f\u6027\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u8a31\u591a\u4eba\u9078\u64c7\u4f7f\u7528\u96f2\u5b58\u5132\u670d\u52d9\u4f86\u5099\u4efd\u548c\u540c\u6b65\u6587\u4ef6\uff0c\u4f46\u9019\u4e9b\u670d\u52d9\u5f80\u5f80\u6d89\u53ca\u96b1\u79c1\u554f\u984c\u548c\u984d\u5916\u7684\u8cbb\u7528\u3002Syncthing \u662f\u4e00\u500b\u958b\u6e90\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u5141\u8a31\u7528\u6236\u5728\u591a\u500b\u8a2d\u5099\u4e4b\u9593\u5b89\u5168\u5730\u540c\u6b65\u6587\u4ef6\uff0c\u4e26\u4e14\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4f3a\u670d\u5668\u4e0a\u904b\u884c\uff0c\u5f9e\u800c\u642d\u5efa\u5c6c\u65bc\u81ea\u5df1\u7684\u79c1\u6709\u7db2\u76e4\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 Ubuntu \u7cfb\u7d71\u4e0a\u5b89\u88dd Syncthing\uff0c\u4e26\u642d\u5efa\u4e00\u500b\u79c1\u6709\u7db2\u76e4\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-syncthing%ef%bc%9f-awmvdIzBWf\">\u4ec0\u9ebc\u662f Syncthing\uff1f<\/h2>\n<p>Syncthing \u662f\u4e00\u500b\u958b\u6e90\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u65e8\u5728\u53d6\u4ee3\u5c08\u6709\u7684\u96f2\u5b58\u5132\u670d\u52d9\u3002\u5b83\u5141\u8a31\u7528\u6236\u5728\u591a\u500b\u8a2d\u5099\u4e4b\u9593\u81ea\u52d5\u540c\u6b65\u6587\u4ef6\uff0c\u4e26\u4e14\u6240\u6709\u7684\u6578\u64da\u90fd\u662f\u52a0\u5bc6\u7684\uff0c\u9019\u610f\u5473\u8457\u7528\u6236\u7684\u96b1\u79c1\u5f97\u5230\u4e86\u4fdd\u969c\u3002Syncthing \u7684\u4e3b\u8981\u7279\u9ede\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u53bb\u4e2d\u5fc3\u5316\uff1a\u4e0d\u9700\u8981\u4f9d\u8cf4\u7b2c\u4e09\u65b9\u4f3a\u670d\u5668\u3002<\/li>\n<li>\u5b89\u5168\u6027\uff1a\u6240\u6709\u7684\u6578\u64da\u50b3\u8f38\u90fd\u662f\u52a0\u5bc6\u7684\u3002<\/li>\n<li>\u8de8\u5e73\u53f0\uff1a\u652f\u6301\u591a\u7a2e\u64cd\u4f5c\u7cfb\u7d71\uff0c\u5305\u62ec Windows\u3001macOS \u548c Linux\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d-syncthing-awmvdIzBWf\">\u5b89\u88dd Syncthing<\/h2>\n<p>\u5728 Ubuntu \u4e0a\u5b89\u88dd Syncthing \u7684\u904e\u7a0b\u76f8\u5c0d\u7c21\u55ae\u3002\u4ee5\u4e0b\u662f\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-1%ef%bc%9a%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-awmvdIzBWf\">\u6b65\u9a5f 1\uff1a\u66f4\u65b0\u7cfb\u7d71<\/h3>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-2%ef%bc%9a%e6%b7%bb%e5%8a%a0-syncthing-%e7%9a%84%e5%ae%98%e6%96%b9-ppa-awmvdIzBWf\">\u6b65\u9a5f 2\uff1a\u6dfb\u52a0 Syncthing \u7684\u5b98\u65b9 PPA<\/h3>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6dfb\u52a0 Syncthing \u7684\u5b98\u65b9 PPA\uff0c\u4ee5\u4fbf\u80fd\u5920\u5b89\u88dd\u6700\u65b0\u7248\u672c\uff1a<\/p>\n<pre><code>sudo add-apt-repository ppa:syncthing\/ppa<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-3%ef%bc%9a%e5%ae%89%e8%a3%9d-syncthing-awmvdIzBWf\">\u6b65\u9a5f 3\uff1a\u5b89\u88dd Syncthing<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd Syncthing\uff1a<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt install syncthing<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-4%ef%bc%9a%e5%95%9f%e5%8b%95-syncthing-awmvdIzBWf\">\u6b65\u9a5f 4\uff1a\u555f\u52d5 Syncthing<\/h3>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 Syncthing\uff1a<\/p>\n<pre><code>syncthing<\/code><\/pre>\n<p>\u9019\u5c07\u555f\u52d5 Syncthing \u4e26\u5728\u7d42\u7aef\u4e2d\u986f\u793a\u5176\u65e5\u8a8c\u3002\u60a8\u53ef\u4ee5\u901a\u904e\u700f\u89bd\u5668\u8a2a\u554f <a href=\"http:\/\/localhost:8384\" rel=\"nofollow noopener\" target=\"_blank\">http:\/\/localhost:8384<\/a> \u4f86\u8a2a\u554f Syncthing \u7684 Web \u754c\u9762\u3002<\/p>\n<h2 id=\"%e9%85%8d%e7%bd%ae-syncthing-awmvdIzBWf\">\u914d\u7f6e Syncthing<\/h2>\n<p>\u5728 Web \u754c\u9762\u4e2d\uff0c\u60a8\u53ef\u4ee5\u9032\u884c\u5404\u7a2e\u914d\u7f6e\uff0c\u5305\u62ec\u6dfb\u52a0\u6587\u4ef6\u593e\u3001\u8a2d\u7f6e\u540c\u6b65\u8a2d\u5099\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684\u914d\u7f6e\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-1%ef%bc%9a%e6%b7%bb%e5%8a%a0%e6%96%87%e4%bb%b6%e5%a4%be-awmvdIzBWf\">\u6b65\u9a5f 1\uff1a\u6dfb\u52a0\u6587\u4ef6\u593e<\/h3>\n<p>\u5728 Web \u754c\u9762\u4e2d\uff0c\u9ede\u64ca\u201c\u6dfb\u52a0\u6587\u4ef6\u593e\u201d\u6309\u9215\uff0c\u7136\u5f8c\u9078\u64c7\u60a8\u5e0c\u671b\u540c\u6b65\u7684\u672c\u5730\u6587\u4ef6\u593e\u3002\u60a8\u9084\u53ef\u4ee5\u8a2d\u7f6e\u6587\u4ef6\u593e\u7684\u540d\u7a31\u548c\u5176\u4ed6\u9078\u9805\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-2%ef%bc%9a%e6%b7%bb%e5%8a%a0%e8%a8%ad%e5%82%99-awmvdIzBWf\">\u6b65\u9a5f 2\uff1a\u6dfb\u52a0\u8a2d\u5099<\/h3>\n<p>\u8981\u8207\u5176\u4ed6\u8a2d\u5099\u540c\u6b65\u6587\u4ef6\uff0c\u60a8\u9700\u8981\u5728\u5176\u4ed6\u8a2d\u5099\u4e0a\u5b89\u88dd Syncthing \u4e26\u7372\u53d6\u5176\u8a2d\u5099 ID\u3002\u7136\u5f8c\u5728 Web \u754c\u9762\u4e2d\uff0c\u9ede\u64ca\u201c\u6dfb\u52a0\u8a2d\u5099\u201d\u4e26\u8f38\u5165\u5c0d\u65b9\u7684\u8a2d\u5099 ID\u3002<\/p>\n<h3 id=\"%e6%ad%a5%e9%a9%9f-3%ef%bc%9a%e8%a8%ad%e7%bd%ae%e5%90%8c%e6%ad%a5%e9%81%b8%e9%a0%85-awmvdIzBWf\">\u6b65\u9a5f 3\uff1a\u8a2d\u7f6e\u540c\u6b65\u9078\u9805<\/h3>\n<p>\u60a8\u53ef\u4ee5\u6839\u64da\u9700\u8981\u8a2d\u7f6e\u540c\u6b65\u9078\u9805\uff0c\u4f8b\u5982\u9078\u64c7\u662f\u96d9\u5411\u540c\u6b65\u9084\u662f\u55ae\u5411\u540c\u6b65\uff0c\u4e26\u8a2d\u7f6e\u6587\u4ef6\u7248\u672c\u63a7\u5236\u7b49\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-awmvdIzBWf\">\u7e3d\u7d50<\/h2>\n<p>\u901a\u904e\u4ee5\u4e0a\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u5728 Ubuntu \u4e0a\u6210\u529f\u5b89\u88dd Syncthing\uff0c\u4e26\u642d\u5efa\u4e00\u500b\u5c6c\u65bc\u81ea\u5df1\u7684\u79c1\u6709\u7db2\u76e4\u3002\u9019\u4e0d\u50c5\u80fd\u5920\u63d0\u9ad8\u6578\u64da\u7684\u5b89\u5168\u6027\uff0c\u9084\u80fd\u8b93\u60a8\u96a8\u6642\u96a8\u5730\u8a2a\u554f\u81ea\u5df1\u7684\u6587\u4ef6\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u4f86\u904b\u884c Syncthing\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u6216 <a href=\"https:\/\/server.hk\">VPS<\/a> \u670d\u52d9\uff0c\u4ee5\u78ba\u4fdd\u60a8\u7684\u6578\u64da\u5b89\u5168\u548c\u9ad8\u6548\u540c\u6b65\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Ubuntu \u4e0a\u5b89\u88dd Syncthing\uff0c\u8f15\u9b06\u642d\u5efa\u5c6c\u65bc\u81ea\u5df1\u7684\u79c1\u6709\u7db2\u76e4\uff0c\u5be6\u73fe\u5b89\u5168\u3001\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u8207\u5171\u4eab\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-52265","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=52265"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52265\/revisions"}],"predecessor-version":[{"id":52266,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/52265\/revisions\/52266"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=52265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=52265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=52265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}