id: d633b420aa454f94a4df8480f5f7846a
parent_id: 
item_type: 1
item_id: 21309c46db144a4796d56d7de4700ea6
item_updated_time: 1764345491117
title_diff: "[{\"diffs\":[[1,\"Syncthing – 数据同步利器---自己的网盘，详细安装配置指南，内网使用，发现服务\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>Syncthing – 数据同步利器---自己的网盘，详细安装配置指南，内网使用，发现服务器配置 - 上官飞鸿 - 博客园</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"20883\\\"></a>\\\r\\\n<h1>Syncthing – 数据同步利器---自己的网盘，详细安装配置指南，内网使用，发现服务器配置 - 上官飞鸿 - 博客园</h1>\\\r\\\n\\\r\\\n<div>\\\n<span><div><br/></div><div style=\\\"font-size: 16px; min-width: 100%;\\\"><div style=\\\"font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"vertical-align: baseline; font-size: 16px; text-align: left;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px auto; padding: 0px 2em; border: 0px; font-size: inherit; vertical-align: baseline; z-index: 200; position: relative; width: 36em;\\\"><div style=\\\"margin: 0px 25px 0px -25px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px 0px 9em; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"background-color: transparent; margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><h1 style=\\\"border: 0px; vertical-align: baseline; text-align: left; font-size: 35px; padding: 0px; margin: 0px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">Syncthing – 数据同步利器---自己的网盘，详细安装配置指南，内网使用，发现服务器配置</span></h1><div style=\\\"padding: 1.5em 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative; height: 1em; text-align: center; margin: 0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);margin:0px;margin-bottom:0px;\\\"></div></div></div><div style=\\\"background-color: transparent;\\\"><br/></div><div style=\\\"background-color: transparent;\\\"><br/></div><hr style=\\\"background-color: transparent; border-top: none; border-right: none; border-bottom: 1px solid; border-left: none;\\\"/><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">简介：</span></h2><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">无论办公、文件共享、团队协作还是家庭照片、视频、音乐、高清电影的存储，我们常常都有文件同步和存储的需求。但随着国内各大网盘的花式阵亡或限速，早已没什么好选择了。好吧，我已经转战使用onedriver了，但是在单位里面，没有互联网，找开源的软件试试自己搭建吧。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">自建网盘云储存同步服务的软件有很多， Seafile、NextCloud、ownCloud、BT Sync (Resilio Sync) 等。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">而 Syncthing 则有着自己非常特别的优点，受到众多高手们的推荐，被誉为是 Resilio Sync / BT Sync 和 Dropbox 的最佳开源替代品。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Syncthing 最大的特色是采用了与 Resilio Sync (BitTorrent Sync) 类似的 P2P 分布式技术，无需中心服务器，即可让多台设备互相实时同步文件。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Syncthing 官方支持 Linux、Windows、OS X、FreeBSD、Solaris 等系统，并且有第三方的 iOS、Android 应用。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我选择它还有一个原因就是，它只需要一个文件就可以了。在linux下只有一个文件，在windows下也可以只有一个文件，当然还有一个GUI桌面程序。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">一：官网及下载</span></h2><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">官网地址：</span><a href=\\\"https://syncthing.net/\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">https://syncthing.net/</a></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/9c75e4060625418dab2bfb0c4b46fa8a\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314172937350-1039936169.png\\\" height=\\\"260\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">linux64位就是我主力使用的，放在一个fedora服务器上，不过是跑在docker里面。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">SyncTrayzor是官方提供的GUIwindows客户端，方便设置开机启动进行自动同步。可以缩小到任务栏。实在是方便部署到客户端，让它自动上传啊。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">SyncTrayzor维护在github。</span><a href=\\\"https://github.com/canton7/SyncTrayzor/releases\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">https://github.com/canton7/SyncTrayzor/releases</a></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/fc63ae48f3e54bfabfbfc386ff3a700c\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314173504678-794314394.png\\\" height=\\\"391\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Portable是免安装版本。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Setup就是安装版本。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">X64 X86,根据你的系统，随便下载吧。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">二：在linux下进行安装</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.下载</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">随你喜欢wget curl winscp了。解压后只需要一个文件：</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/64a1b4459f3f46c191b4a1a0ccdd1538\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314173836597-39216564.png\\\" height=\\\"207\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.配置</span></h3><h4 style=\\\"background-color: transparent; margin: 30px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 20px;\\\"><span style=\\\"font-size: 20px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-weight: bold;\\\">2.1复制文件</span></h4><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">cp syncthing /usr/bin/syncthing</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">只需要复制这一个文件，其他的可以删了。</span></div><h4 style=\\\"background-color: transparent; margin: 30px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 20px;\\\"><span style=\\\"font-size: 20px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-weight: bold;\\\">2.2修改权限</span></h4><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">chmod +x /usr/bin/syncthing</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">加上可执行权限</span></div><h4 style=\\\"background-color: transparent; margin: 30px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 20px;\\\"><span style=\\\"font-size: 20px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-weight: bold;\\\">2.3运行</span></h4><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">./usr/bin/syncthing</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">就这一个文件，直接执行。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">它会自动生成配置文件，还不能先改，只好运行一遍，等它出现</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">[CKEAY] 17:44:53 INFO: Detected 1 NAT service</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">[CKEAY] 17:45:39 INFO: Joined relay relay://36.229.223.123:22067</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">大概就是已经生成配置文件，并运行起来了。</span></div></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">ctrl+c 停止这个进程。</span></div><h4 style=\\\"background-color: transparent; margin: 30px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 20px;\\\"><span style=\\\"font-size: 20px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-weight: bold;\\\">2.4修改配置文件</span></h4><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">sed 's/127.0.0.1/0.0.0.0/g' /root/.config/syncthing/config.xml</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">默认配置文件在/root/.config/syncthing/config.xml，默认监听网络是127.0.0.1，远程不能访问，所以用sed命令修改为0.0.0.0</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.运行</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">./usr/bin/syncthing</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">再次运行起来。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">4.测试</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">http://youip:8384/     或者  http://hostname:8384/ 都可以访问，记得改你的ip，或者网络名。复制不能用。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/c3461d2f06eb4938a890a0e7cd066703\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314175342597-1043908804.png\\\" height=\\\"37\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);\\\" width=\\\"800\\\"/></span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">只要没出乱七八糟的错误，就算安装成功了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">二：在Docker中安装</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.下载</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">docker pull syncthing/syncthing</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.运行</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">docker run -it  -p 8384:8384 -p 22000:22000 \\\\</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    -v /storage/conf/syncthing:/var/syncthing/config \\\\</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    -v /storage/data/syncthing:/var/syncthing \\\\</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    syncthing/syncthing:latest</span></div></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">官方给的运行参数就是这样了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">/storage/conf/syncthing，配置文件存储位置。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">/storage/data/syncthing，数据存储主目录。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">两个目录根据自己的情况替换。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">8384  22000，两个端口一般不占用，直接运行。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.测试</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">和linux测试一样。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">http://youip:8384/     或者  http://hostname:8384/ 都可以访问，记得改你的ip，或者网络名。复制不能用。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/1dc41e3f07fb48afac5c84f0ff41ba5f\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314175342597-1043908804.png\\\" height=\\\"37\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);\\\" width=\\\"800\\\"/></span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">只要没出乱七八糟的错误，就算安装成功了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">三：在windows中安装</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.下载</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">windows下我们就不使用linux那样的单文件版了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://github.com/canton7/SyncTrayzor/releases/download/v1.1.21/SyncTrayzorPortable-x64.zip\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">https://github.com/canton7/SyncTrayzor/releases/download/v1.1.21/SyncTrayzorPortable-x64.zip</a></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">目前最新的应该是这个版本。如果你是32位的系统，请下载</span><a href=\\\"https://github.com/canton7/SyncTrayzor/releases/download/v1.1.21/SyncTrayzorPortable-x86.zip\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">x86版</a><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.运行</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">解压后找到SyncTrayzor.exe，双击运行即可</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/b1a8130688444e55ae0fef3a4a684d14\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314175929740-856155834.png\\\" height=\\\"121\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.配置</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">还是老问题，默认只有127.0.0.1，localhost可以访问，没有远程访问权限。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">照下图，右边的设置，用来修改图形界面监听地址，并且可以设置随开机自动启动</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/8a8cbf42475c4ea2aaad921cd2145576\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314180140731-2017142262.png\\\" height=\\\"517\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"> </span></div><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/0876619174df46f0a08bb546965f7811\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180314180345124-659456150.png\\\" height=\\\"625\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"430\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">四：基本配置</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.配置简介</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我们要配置自动同步，那么就要有2台电脑运行syncthing，相互要能连通，并配置相同ID的共享文件夹。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">每台电脑，第一次运行syncthing时，会自动生成随机ID，并注册ID,网络地址到全球发现服务器。添加远程设备时，去全球发现服务器，来查ID，取得远程设备的网络地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">所以，在windows不要复制解压运行过的</span><a href=\\\"https://github.com/canton7/SyncTrayzor/releases/download/v1.1.21/SyncTrayzorPortable-x64.zip\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">SyncTrayzorPortable-x64.zip</a><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">，只复制压缩包，解压，重新生成新的ID。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">后面的例子以2台设备同步一个文件夹为例讲解。设备1：WORKER（操作机，本地设备），设备2： NUC（家庭服务器，放在路由器边上，没键盘，没鼠标，只接了HDMI到电视，远程设备） 同步一个文件夹，WORKER路径：D:\\\\PythonTest\\\\flasktest ，nuc路径：/var/syncthing/temp/app。WORKER操作系统windows，NUC操作系统fedora，syncthing运行在docker中，映射容器路径/var/syncthing到物理路径/storage,那么最后的共享文件夹，即NUC物理机的/storage/temp/app。对这些不理解的，自己慢慢补docker的知识。忽略NUC运行的DOCKER。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.配置中文.</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如下图，先点English，在弹出的下拉框，点击Chinese（china），就变成中文了。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/568d8c5ce65a4ce8af49ce55c91862e4\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317024801061-1388212297.png\\\" height=\\\"133\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.配置WEB安全</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我们输入地址：8384，默认设置，syncthing只允许localhost本地登录，但是我们为了方便配置，已经给它改了监听0.0.0.0，任意地址都可以访问，貌似不安全啊。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">那么我们就配置一下web登录密码：</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">访问web页面后在右上角 ，操作--设置--图形用户界面</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">图形管理界面用户名</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">图形管理界面密码</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">这两项就可以设置图形界面登录账户密码了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">使用加密连接到图形管理页面</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如果你怕被监听到，开启加密也可以。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">每个运行syncthing的机器（WORKER NUC）都要单独设置。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">4.配置设备名称</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">访问web页面后在右上角 ，操作--设置--常规--设备名</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">为了方便使用，还是设个设备名吧，不然貌似是使用ID前几位的随机字符串做设备名，机器多了，可真不方便。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">还是每个设备设置。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">五：添加远程设备</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.获取远程设备ID</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">在WORKER上添加NUC。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">你时去NUC抄，还是远程登录看？当然时远程登录看了，安装的时候，我都设置了任意IP监听登录。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">访问NUCweb页面后在右上角 ，操作--显示ID，</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">BTQMGH2-JBPTQGX-HQWBLLW-EBEQJUC-NMZOUMQ-3TLYVSV-****-****</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">这一长串就是远程设备的ID。下面的二维码时方便android手机端使用的扫码添加。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.本地设备添加远程设备</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">访问WORKERweb页面（或SyncTrayzor窗口）后在右下角 ，添加远程设备</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">在设备ID，填上刚复制过来的远程设备ID。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">下面有两个选项介绍一下：</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">作为中介，syncthing使用了P2P技术来实现文件同步，现在我们实验的时候时2台设备，同步一个文件夹，如果加入新设备，是要分别给这两台设备配置一个新的远程设备。如果开启作为中介，那么，WORKER，会自动添加，或称为同步NUC的远程设备（新设备）。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">自动接受，如果在NUC创建了一个共享文件夹，并共享给WORKER，无需WORKER选择接受，即在默认目录，创建共享文件夹，并同步。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">根据自己的需要来选择开启吧。我都没开启，因为我实验2台设备，部署也就3-4个设备。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.等待</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">因为默认使用全球发现服务器，受网速影响，还是要等等的。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">注意NUC的web界面。出现新设备，就是已经连上了，选择添加设备，就会自动把WORKER，作为远程设备，连接到NUC。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/96fab108b5354bc9a1bbe579ae4ea04d\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317032126584-1197560648.png\\\" height=\\\"105\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">此时两台设备web页面，右下角部分，都会出现远程设备（即对方）</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">六：添加同步文件夹</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.删除默认文件夹</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">貌似新装，管理页左边都会出现 default ***</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">点击 文件夹名--下拉框右下部分--选项--移除--确认</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">删除是因为路径问题，它们分别生成在每台设备的默认共享目录下，基本不是我们需要的路径。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.本地设备添加文件夹</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">管理页中间部分，添加文件夹。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">文件夹路径，估计要你自己写一下了（D:\\\\PythonTest\\\\flasktest ），到资源管理器去复制也可以的。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">关键设置文件夹ID（app） ，说明在所有从设备上必须一致，也就是在我们这多个设备同步时，都用这个ID，来同步这个文件夹。下面还有共享给远程设备（NUC），勾选远程设备的名字就好了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">其中的高级设置，看一下也能明白。最后保存即可。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/3c8afc0f3816455c8c57bcadcdf91fbe\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317033022532-1492996890.png\\\" height=\\\"447\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">七：给远程设备添加同步文件夹</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.还是等待，我们使用的是全球发现服务器</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">直到这个在NUC的管理页面出现，点击添加即可。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/13559e8a46dd4e50ad8784c5d416a6ac\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317033452512-1499026286.png\\\" height=\\\"92\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.配置远程设备共享文件夹路径</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">/var/syncthing/temp/app</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">这个应该时前期就决定好的，这时填一下就可以了，记得勾选下面的共享给WORKER。不勾选的时候是单向同步？</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.配置文件夹 ID</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">app</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">这个也是在本地设备配置文件夹时给定的ID</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">4.查看同步状态</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">看下面两个图，区别是远程设备是否显示同步完成，因为使用P2P 分布式技术，所以没有中心服务器，那么每台设备，都即是客户端，又是服务器。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">文件夹上的同步完成，仅代表本地客户端已经和本地服务器同步了。（两台设备没完成完全同步）</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">远程设备上的同步完成，代表本地客户端和这个远程服务器同步了。（两台设备完成完全同步）</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">有的时候那个同步完成，会显示同步中。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/7b597886c10945bb81f9de6e1424acaa\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317100243336-1150981568.png\\\" height=\\\"289\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/540a75af34ed40d184796dbc06e11b2b\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317100448172-1224734178.png\\\" height=\\\"289\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold; background-color: rgb(255, 250, 165);-evernote-highlight:true;\\\">八:内部网络使用（固定IP），无法连接全球发现服务器</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.简介</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">当我们在内部网络使用syncthing时，因为没有办法连接全球发现服务器，那么我们该如何配置呢？这章节说明一下在固定IP的情况下，我们可以使用IP地址来配置互相发现。只要能互相ping通，跨网段也没关系的。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我们在官方的DOCKER运行命令中可以看出映射两个端口出来，8384和22000，8384是我们用来web控制的，那么22000就是syncthing的监听端口了。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.配置</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">看下面两图，这时编辑已经建立连接的远程设备，新建设备时也一样，我在地址列表中填入了远程设备的协议,IP,端口。看说明，host计算机名字也可以，域名应该也可以。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">dynamic，就是自动发现，也是默认值，难道时自动扫描么？删除也可以。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"> </span></div><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/8827b04f28f0491fba0962d203985f52\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317101850077-266944207.png\\\" height=\\\"470\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/a4c8b29544914c188d366742bfc35490\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317101911126-66131779.png\\\" height=\\\"466\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.验证连通</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">下面两图，都是连接断开的状态，不过，我这两台设备，都能连接互联网，估计获取了发现服务器记录的地址。但这并不影响我们做测试。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">第二张图看出地址多了一行我们配置的tcp://192.168.1.4:22000</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/09a883ae32d5406fbd455f093f765615\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317102401709-1356112089.png\\\" height=\\\"391\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/4984d4e8c2294c41a6e7dedf63d6a09c\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317102330278-489327615.png\\\" height=\\\"415\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">下面两图是使用dynamic时的连通状态，真不知道时什么IP地址。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/9546a90a367649e2afd921ad460f6e01\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317102825274-857643138.png\\\" height=\\\"326\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/741ce73f2437447397043c0e77cab4cb\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317102838073-1004480991.png\\\" height=\\\"342\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"569\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">下面两图就是都配置对方地址后的连通状态了。使用对方的网络地址连接。</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/29773149fb454dc487121954fd34b52e\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317103053281-442929493.png\\\" height=\\\"325\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"> </span></div><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/6a1f7fa19ae54dfa80c1e6b347fc50a5\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317103104449-372361120.png\\\" height=\\\"326\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">九:内部网络使用（动态IP），无法连接全球发现服务器</span></h2><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">1.简介</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; background-color: rgb(255, 250, 165); transition: background-color 0.4s ease 0s; color: black; font-family: &quot;PT Serif&quot;; line-height: 1.5em; font-style: unset;-evernote-highlight:true;\\\" title=\\\"点击以取消高亮显示\\\">上一章节我们使用固定ip，可以通过填写对方的网络连接参数来配置远程设备。如果同网段动态IP，应该也可以用host计算机名来配置远程设备。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">那么另一个麻烦又跳出来了，如果是不同网段，又是动态IP，怎么办？连接参数中IP是变动的，计算机名时无法广播解析的。或许可以建个DNS服务器来实现。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">太扯了。又可能影响原来的DNS解析。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Syncthing Discovery Server---syncting发现服务器来解救你，你这么复杂的运行环境，相信会有一个小型服务器的，只要有一个固定IP，就可以了。几十台设备，几百台设备，都可以注册到这个发现服务器，替代全球发现服务器。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">发现服务介绍https://docs.syncthing.net/users/stdiscosrv.html        发现服务源码 https://github.com/syncthing/discosrv   发现服务下载：https://github.com/syncthing/discosrv/releases</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">2.命令参考</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">stdiscosrv [-cert=&lt;file&gt;] [-db-dir=&lt;string&gt;] [-debug] [-http] [-key=&lt;string&gt;] [-listen=&lt;address&gt;] [-metrics-listen=&lt;address&gt;] [-replicate=&lt;peers&gt;] [-replication-listen=&lt;address&gt;]</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-cert=&lt;file&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    证书文件(default “./cert.pem”).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-db-dir=&lt;string&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">   数据存储目录 (default “./discovery.db”).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-debug</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    debug模式输出</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-http</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    使用http协议还要求在https代理后面 (behind an HTTPS proxy).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-key=&lt;file&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    key文件 (default “./key.pem”).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-listen=&lt;address&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    监听端口 (default “:8443”).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-metrics-listen=&lt;address&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    不知道是什么意思 (default disabled).</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-replicate=&lt;peers&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    复制另一台发现服务器？</span></div><div><br/></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">-replication-listen=&lt;address&gt;</span></div><div><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">    另一台发现服务器监听端口？</span></div></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">3.运行</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">syncthing真是良心，也不用复杂的安装，linux下也不用编译，不论linux还是windows，都是一个文件，直接运行。而且这个发现服务器，看着挺多的运行参数，其实一个也不用写。它和单文件的客户端一样，直接运行就可以了，自动生成各个目录和文件。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">windows下是这样</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/6583929ee2eb4d4696401e722c816a36\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317114459863-872821546.png\\\" height=\\\"66\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">linux下是这样</span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\":/be948c206e2b4bdaa84e1456f99366a7\\\" type=\\\"image/png\\\" data-filename=\\\"1241143-20180317114942482-1882634831.png\\\" height=\\\"145\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></div><p style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;\\\"></p><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如果你有自己的证书，那么可以这样运行，把证书路径作为参数，启动发现服务器。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">stdiscosrv -cert=/path/to/cert.pem -key=/path/to/key.pem</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">4.生成节点配置URL</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如果您使用的是非CA签名证书，则必须将该设备ID（指纹）交给使用发现服务器URL的客户机。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">这个客户机的意思时对发现服务器，所有运行syncthing的节点都是发现服务器的客户机。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">非CA签名的证书，自动生成的一定时非CA签名证书。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">官方给的示例是这样的</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">https://disco.example.com:8443/?id=7DDRT7J-UICR4PM-PBIZYL3-MZOJ7X7-EX56JP6-IK6HHMW-S7EK32W-G3EUPQA</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">看到那串像序列号的东西，就是设备ID，启动发现服务器的时候，它也显示出来了。记下来，用来组合我们自己的发现服务器地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">本来就内网了，域名就算了，可以使用IP地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">对应上面启动的两个发现服务器。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">windows：IP    192.168.1.4</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">URL      https://192.168.1.4:8443/?id=ZRXXI2M-XEARVGA-SSYYEWO-6QGNNIZ-HPBVH3K-PIR6DCY-HJERGZE-PXF7NAL</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">linux: IP 192.168.1.3</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">URL    http://192.168.1.3:8443/?id=5OJDGM7-BZ6EJT2-M2BEAIX-MK2SBMY-N4STHNI-MEP3VKO-RI6H27D-PYXTPAB</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如果你有CA签名的证书，那么URL就不需要ID参数了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">https://disco.example.com:8443/      https://disco_server_ip:8443/</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">4.给节点配置URL</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">管理界面，右上角  操作--设置--连接</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">全球发现服务器，删除原来的default，填上我们生成的节点配置URL。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">提示重启syncthing，重启一下就可以了。</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">5.关闭手动指定的远程设备地址</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">远程设备--选项--地址列表</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">原来的：tcp://192.168.1.4:22000,dynamic</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">改为：dynamic</span></div><h3 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">6.测试</span></h3><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">其实就是看远程设备的地址，原来我们使用defalut全球发现服务器的时候，远程设备地址，反正是我不认识的地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">当我们配置了远程设备IP地址之后，远程设备地址，是我们配置的远程设备地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">现在我们取消了远程设备地址，使用了我们自己的发现服务器地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">也就是syncthing，把自己注册到我们自己的发现服务器上，并根据ID从我们自己的发现服务器地址，查找远程设备地址。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">如果远程设备地址，是我们的内部网IP地址，并可以显示同步完成。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">那就一切OK了。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><a href=\\\"https://www.cnblogs.com/jackadam/p/8568833.html#_labelTop\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">回到顶部</a></div><h2 style=\\\"background-color: transparent; margin: 35px 0px 1.5em; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 30px;\\\"><span style=\\\"font-size: 30px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: bold;\\\">结语：</span></h2><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">syncthing，使用方便，配置方便，在各大网盘纷纷关停，收费，限速………………因素下。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">自己搭建一个，也挺好。或者百度搜索</span><span style=\\\"font-size: inherit; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; text-decoration: line-through; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;\\\">5T onedriver</span><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">已失效。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我的用途呢，其实是在进行软件开发的时候。worker编写了源代码，server生成docker，以前用ftp，sftp上传，然后docker build。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">文件少的时候还好，文件多的时候，又覆盖，那是一个慢啊。都在一个局域网，又没必要使用github的自动构建，用自动构建，还要等docker hub 服务器空暇。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">现在是把woker的源码文件夹，同步到server的docker build目录。docker build的时候把源码copy进镜像。编译前还可以到web管理界面扫描同步一下。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">尤其时源码只改几个文件的时候，同步很快。方便了我这个伪全栈的开发过程。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">个人现在比较喜欢在服务器上使用docker作为服务。官方提供了linux_syncthing的dockre镜像。</span></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">我还需要一个linux_stdiscosrv的镜像。这几天写好了，把地址给大家。</span></div><div style=\\\"background-color: transparent; margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">写着也挺快，但这篇教程，又臭又长，让我休息一下吧。</span></div></div></div></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: absolute; top: -1000px; left: -1000px;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Measure</span></div><div style=\\\"background-color: transparent; margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: absolute; top: -1000px; left: -1000px;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1;\\\">Measure</span></div></div></div></div></div></div></div></div><div><br/></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":99172}]"
metadata_diff: {"new":{"id":"21309c46db144a4796d56d7de4700ea6","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345763173,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:12:59.077Z
created_time: 2025-11-28T16:12:59.077Z
type_: 13