id: 6fde65d2ec824fe598e0e38a577538bc
parent_id: 
item_type: 1
item_id: f4a7cc04886a41b388a393ec22c0396f
item_updated_time: 1764345498051
title_diff: "[{\"diffs\":[[1,\"配置 Joplin Server - 知乎\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":21}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>配置 Joplin Server - 知乎</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=\\\"26621\\\"></a>\\\r\\\n<h1>配置 Joplin Server - 知乎</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:article; --en-clipped-source-url:https://zhuanlan.zhihu.com/p/352413230; --en-clipped-source-title:配置 Joplin Server - 知乎;\\\">\\\n<div><br/></div><div style=\\\"min-height: 7471px; font-size: 16px; display: block; min-width: 100%; position: relative;\\\"> <div><div style=\\\"font-family:-apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans SC&quot;, &quot;Noto Sans CJK SC&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif;color:rgb(18, 18, 18);-webkit-tap-highlight-color:rgba(18, 18, 18, 0);background:rgb(255, 255, 255);\\\"><div><div><span><div style=\\\"background:rgb(255, 255, 255);min-width:1000px;\\\"><div style=\\\"box-sizing:border-box;\\\"><div style=\\\"margin:0px auto;width:690px;\\\"><h1 style=\\\"font:inherit;font-weight:600;font-synthesis:style;font-size:24px;line-height:1.22;overflow-wrap:break-word;margin:24px 0px;\\\">配置 Joplin Server</h1><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;\\\"><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between;max-width:654px;-webkit-box-flex:1;flex:1 1 0%;white-space:nowrap;overflow:hidden;\\\"><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:justify;justify-content:space-between;max-width:654px;-webkit-box-flex:1;flex:1 1 0%;white-space:nowrap;overflow:hidden;\\\"><span><div style=\\\"position:relative;display:inline-block;\\\"><div><a href=\\\"https://www.zhihu.com/people/zrong\\\" style=\\\"color:inherit;text-decoration:none;\\\" target=\\\"_blank\\\"><img src=\\\":/2a5afc64243b4a29864873113e58b24a\\\" type=\\\"image/jpeg\\\" data-filename=\\\"8d69e54a5_l.jpg\\\" height=\\\"38\\\" style=\\\"background:rgb(255, 255, 255);border-radius:50%;vertical-align:top;\\\" width=\\\"38\\\"/></a></div></div></span><div style=\\\"-webkit-box-flex:1;flex:1 1 0%;margin-left:14px;overflow:hidden;\\\"><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;font-size:15px;line-height:1.1;flex-shrink:0;\\\"><span style=\\\"font-weight:600;font-synthesis:style;color:rgb(68, 68, 68);\\\"><div style=\\\"position:relative;display:inline-block;\\\"><div><a href=\\\"https://www.zhihu.com/people/zrong\\\" style=\\\"color:inherit;text-decoration:none;\\\" target=\\\"_blank\\\">曾嵘</a></div></div></span></div><div style=\\\"overflow:hidden;color:rgb(100, 100, 100);\\\"><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;margin-top:2px;font-size:14px;\\\"><div style=\\\"word-break:break-word;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(100, 100, 100);\\\">zengrong.net</div></div></div></div></div></div></div><div style=\\\"margin:0px;\\\"></div><div><span style=\\\"display:block;margin-top:16px;font-size:14px;color:rgb(133, 144, 166);\\\"></span></div></div><div style=\\\"position:relative;width:690px;margin:0px auto;overflow:visible;\\\"><div style=\\\"margin-top:16px;\\\"><div style=\\\"word-break:break-word;line-height:1.6;\\\"><p style=\\\"margin:1.4em 0px;margin-top:0px;\\\">在 <a href=\\\"https://link.zhihu.com/?target=https%3A//blog.zengrong.net/post/wiznote2joplin1/\\\" rel=\\\"nofollow noreferrer\\\" style=\\\"color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px solid rgb(128, 128, 128);\\\" target=\\\"_blank\\\">从 WizNote 为知笔记到 Joplin（上）</a> 一文中，我介绍了把自己积累十年的笔记从 WizNote 搬家到 Joplin 的心路历程。</p><p style=\\\"margin:1.4em 0px;\\\"><a href=\\\"https://link.zhihu.com/?target=https%3A//joplinapp.org/\\\" rel=\\\"nofollow noreferrer\\\" style=\\\"color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px solid rgb(128, 128, 128);\\\" target=\\\"_blank\\\">Joplin</a> 是一个开源的笔记工具，拥有 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">Windows/macOS/Linux/iOS/Android/Terminal</code> 版本的客户端，关于它的优势可以看 <a href=\\\"https://link.zhihu.com/?target=https%3A//blog.zengrong.net/post/wiznote2joplin1/%23joplin\\\" rel=\\\"nofollow noreferrer\\\" style=\\\"color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px solid rgb(128, 128, 128);\\\" target=\\\"_blank\\\">这里</a>。</p><p style=\\\"margin:1.4em 0px;\\\">我们知道，多端同步功能是笔记工具最重要的功能。只有实现了多端同步，我们才能在工作电脑和手机之间无缝切换笔记体验。Joplin 在同步上做得不错，支持 Dropbox、OneDrive 和 AWS s3（当然国内都没法用），支持 WebDAV 协议，也支持自家的 <a href=\\\"https://link.zhihu.com/?target=https%3A//github.com/laurent22/joplin/tree/dev/packages/server\\\" rel=\\\"nofollow noreferrer\\\" style=\\\"color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px solid rgb(128, 128, 128);\\\" target=\\\"_blank\\\">Joplin Server</a>。</p><p style=\\\"margin:1.4em 0px;\\\">本文介绍如何在自己的服务器上搭建 Joplin Server，并配置好 Joplin Desktop 的同步功能。</p><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\">安装 Docker</h2><p style=\\\"margin:1.4em 0px;\\\">以 Ubuntu 18.04 为例：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\"><span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 更新包</span>\\\nsudo apt update\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 安装包管理 https 支持</span>\\\nsudo apt install apt-transport-https ca-certificates curl software-properties-common\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 添加 docker 官方包的 GPG key</span>\\\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg <span>|</span> sudo apt-key add -\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 添加 docker 官方源</span>\\\nsudo add-apt-repository <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable&quot;</span>\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 再次更新包</span>\\\nsudo apt update\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 安装 docker</span>\\\nsudo apt install docker-ce\\\n\\\n<span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 查看 docker 服务状态</span>\\\nsudo systemctl status docker</code></pre></div><p style=\\\"margin:1.4em 0px;\\\">如果此时显示 docker 服务一切正常，接着设置 docker 的执行用户组。我用来运行 Joplin Server 的用户名称为 app，进行下面的设置：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">sudo usermod -aG docker app</code></pre></div><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\"><br/>创建 Joplin Server 配置文件</h2><p style=\\\"margin:1.4em 0px;\\\"><br/>创建配置文件，<code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">/home/app/joplin/.env</code>：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\"><span style=\\\"color:rgb(0, 102, 255);\\\">APP_BASE_URL</span><span style=\\\"font-weight:600;\\\">=</span><span style=\\\"color:rgb(241, 64, 60);\\\">https://your-sample-url</span>\\\n<span style=\\\"color:rgb(0, 102, 255);\\\">APP_PORT</span><span style=\\\"font-weight:600;\\\">=</span><span style=\\\"color:rgb(241, 64, 60);\\\">22300</span></code></pre></div><p style=\\\"margin:1.4em 0px;\\\"><br/><br/>Joplin Server 推荐使用 PostgreSQL 数据库，但我的烂服务器装个数据库很难受，所以上面的配置就是直接用 SQLite 数据库了。 O(∩_∩)O哈哈~</p><p style=\\\"margin:1.4em 0px;\\\"><br/>我的近三千篇文章在同步之后，数据库大小仅为 600MB，这个大小对于 SQLite 还是能承受的。</p><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\"><br/>创建 Docker Volumes</h2><p style=\\\"margin:1.4em 0px;\\\"><br/>由于采用了 SQLite 数据库，而 Docker 默认每次运行都会使用隔离的资源，这回导致之前的同步内容丢失。</p><p style=\\\"margin:1.4em 0px;\\\"><br/>我们需要考虑数据持久化的问题，创建一个 Volume：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\"><span style=\\\"font-style:italic;color:rgb(153, 153, 153);\\\"># 创建名为 joplin 的 volume</span>\\\ndocker volume create joplin</code></pre></div><p style=\\\"margin:1.4em 0px;\\\"><br/>下面的命令查看 volume 是否创建成功，可以看到，volumns 文件夹位于 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">/var/lib/docker</code> 中。</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">$ docker volume inspect joplin\\\n<span style=\\\"font-weight:600;\\\">[</span>\\\n    <span style=\\\"font-weight:600;\\\">{</span>\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;CreatedAt&quot;</span>: <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;2021-02-20T12:09:19+08:00&quot;</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Driver&quot;</span>: <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;local&quot;</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Labels&quot;</span>: <span style=\\\"font-weight:600;\\\">{}</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Mountpoint&quot;</span>: <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;/var/lib/docker/volumes/joplin/_data&quot;</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Name&quot;</span>: <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;joplin&quot;</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Options&quot;</span>: <span style=\\\"font-weight:600;\\\">{}</span>,\\\n        <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;Scope&quot;</span>: <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;local&quot;</span>\\\n    <span style=\\\"font-weight:600;\\\">}</span>\\\n<span style=\\\"font-weight:600;\\\">]</span></code></pre></div><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\"><br/>运行 Joplin Server</h2><p style=\\\"margin:1.4em 0px;\\\"><br/>下面的命令在后台运行 Joplin Server，名称为 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">joplin_server</code>，绑定端口为 22300，并把容器的 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">/home/joplin</code> 绑定到 joplin 这个 volume：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">docker run -d --name joplin_server -v joplin:/home/joplin --env-file /home/app/joplin/.env -p 22300:22300 joplin/server:latest</code></pre></div><p style=\\\"margin:1.4em 0px;\\\"><br/>使用下面的命令查看运行状态：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">$ docker ps -a\\\n\\\nCONTAINER ID   IMAGE                  COMMAND                  CREATED      STATUS      PORTS                      NAMES\\\n6074fa330192   joplin/server:latest   <span style=\\\"color:rgb(241, 64, 60);\\\">&quot;docker-entrypoint.s…&quot;</span>   <span style=\\\"color:rgb(0, 102, 255);\\\">3</span> days ago   Up <span style=\\\"color:rgb(0, 102, 255);\\\">3</span> days   0.0.0.0:22300-&gt;22300/tcp   joplin_server</code></pre></div><p style=\\\"margin:1.4em 0px;\\\"><br/>使用下面的命令重启容器：</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">docker container restart joplin_server</code></pre></div><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\"><br/>配置 Nginx</h2><p style=\\\"margin:1.4em 0px;\\\"><br/>nginx 配置服务器</p><div style=\\\"margin:1em 0px;\\\"><pre style=\\\"padding:calc(0.888889em);font-size:0.9em;word-break:initial;overflow-wrap:initial;white-space:pre;overflow:auto;background:rgb(246, 246, 246);border-radius:4px;margin:0px;\\\"><code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px;padding:0px;border-radius:0px;font-size:inherit;background-color:inherit;\\\">server <span style=\\\"font-weight:600;\\\">{</span>\\\n        server_tokens off<span>;</span>\\\n        root /srv/www/html<span>;</span>\\\n        index index.html index.htm<span>;</span>\\\n        server_name your-domain\\\n        client_max_body_size 100m<span>;</span>\\\n\\\n        location / <span style=\\\"font-weight:600;\\\">{</span> try_files <span style=\\\"color:rgb(0, 102, 255);\\\">$uri</span> <span style=\\\"color:rgb(0, 102, 255);\\\">$uri</span>/ @joplin<span>;</span> <span style=\\\"font-weight:600;\\\">}</span>\\\n        location @joplin <span style=\\\"font-weight:600;\\\">{</span>\\\n                proxy_set_header X-Forwarded-For <span style=\\\"color:rgb(0, 102, 255);\\\">$proxy_add_x_forwarded_for</span><span>;</span>\\\n                proxy_set_header X-Forwarded-Proto <span style=\\\"color:rgb(0, 102, 255);\\\">$scheme</span><span>;</span>\\\n                proxy_set_header Host <span style=\\\"color:rgb(0, 102, 255);\\\">$http_host</span><span>;</span>\\\n                proxy_redirect off<span>;</span>\\\n                proxy_pass http://localhost:22300<span>;</span>\\\n        <span style=\\\"font-weight:600;\\\">}</span>\\\n<span style=\\\"font-weight:600;\\\">}</span>\\\n</code></pre></div><p style=\\\"margin:1.4em 0px;\\\"><br/> <br/><br/>建议开启 HTTPS 支持，可以参考我之前写的文章： <a href=\\\"https://link.zhihu.com/?target=https%3A//blog.zengrong.net/post/add-https-support-with-letsencrypt/\\\" rel=\\\"nofollow noreferrer\\\" style=\\\"color:inherit;text-decoration:none;cursor:pointer;border-bottom:1px solid rgb(128, 128, 128);\\\" target=\\\"_blank\\\">使用 Let's Encrypt 加入全站 HTTPS 支持</a>。</p><h2 style=\\\"margin:0px;font:inherit;font-synthesis:style;clear:left;margin-top:calc(2.33333em);margin-bottom:calc(1.16667em);font-size:1.2em;line-height:1.5;font-weight:600;\\\"><br/>配置 Joplin Desktop<br/></h2><div style=\\\"margin:1.4em 0px;\\\"><img src=\\\":/838b7b575288497f890f193d9fb7284a\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-e0b4acb4c23e590c6f32a9fa9e62d523_1440w.jpg\\\" height=\\\"690\\\" style=\\\"margin:0px 41.5px; display:block; max-width:100%; cursor:zoom-in; background-color:rgba(0, 0, 0, 0); animation:0.5s ease-in 0s 1 normal none running fxRichTextFadeIn;\\\" width=\\\"607\\\"/></div><p style=\\\"margin:1.4em 0px;\\\"><br/><i>图像 1: Joplin Desktop Sync</i><br/><br/>同步目标选择 Joplin Server。</p><p style=\\\"margin:1.4em 0px;\\\"><br/>服务器 URL 保持和 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">.env</code> 配置文件中的 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">APP_BASE_URL</code> 配置相同。</p><p style=\\\"margin:1.4em 0px;\\\"><br/>Joplin Server 支持多个客户端同步，可以把每个客户端的内容同步到不同的服务器目录。不同的目录可以在 Joplin Server 后台看到。如果你只有一个客户端，那么随便填写一个英文字符串就好。</p><p style=\\\"margin:1.4em 0px;\\\"><br/>登录进入 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">https://your-sample-url/login</code> ，使用默认的账户名 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">admin@localhost</code> 和密码 <code style=\\\"font-family:Menlo, Monaco, Consolas, &quot;Andale Mono&quot;, &quot;lucida console&quot;, &quot;Courier New&quot;, monospace;margin:0px 2px;padding:3px 4px;border-radius:3px;font-size:0.9em;background-color:rgb(246, 246, 246);\\\">admin</code> 登录，然后修改账号和密码即可。</p><p style=\\\"margin:-0.8em 0px;\\\"><br/></p><div style=\\\"margin:1.4em 0px;\\\"><img src=\\\":/20f3264d130b4af2b5f515c63b381a85\\\" type=\\\"image/jpeg\\\" data-filename=\\\"v2-a431f917e98f88f08ed5196d565cbe44_1440w.jpg\\\" height=\\\"593\\\" style=\\\"margin:0px; display:block; max-width:100%; cursor:zoom-in; background-color:rgba(0, 0, 0, 0); animation:0.5s ease-in 0s 1 normal none running fxRichTextFadeIn;\\\" width=\\\"958\\\"/></div><p style=\\\"margin:1.4em 0px;\\\"><br/><i>图像 2: Joplin Server Files</i><br/><br/>在移动设备上也可以进行相同的设置。移动设备有个「同步状态」功能可以看到当前的同步状态：<br/></p><div style=\\\"margin:1.4em 0px;\\\"><img height=\\\"1407\\\" src=\\\"data:image/svg+xml;utf8,%3Csvg xmlns=%5C'http://www.w3.org/2000/svg%5C' width=%5C'1080%5C' height=%5C'2202%5C'%3E%3C/svg%3E\\\" style=\\\"margin:0px; display:block; max-width:100%; cursor:zoom-in; background-color:rgba(0, 0, 0, 0); animation:0.5s ease-in 0s 1 normal none running fxRichTextFadeIn;\\\" width=\\\"1080\\\"></img></div><p style=\\\"margin:1.4em 0px;margin-bottom:0px;\\\"><br/><i>图像 3: Joplin Mobile Sync Status</i></p></div></div></div><div style=\\\"font-size:14px;color:rgb(133, 144, 166);padding:16px 0px;overflow:hidden;width:690px;margin:0px auto;\\\">发布于 2021-02-23 19:00</div><div style=\\\"overflow:hidden;width:690px;margin:0px auto;display:flex;\\\"><div style=\\\"display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-align:center;align-items:center;margin-bottom:-10px;padding:16px 0px;\\\"><div style=\\\"position:relative;display:inline-block;padding:0px 12px;color:rgb(0, 102, 255);vertical-align:top;border-radius:100px;background:rgba(0, 102, 255, 0.1);overflow:hidden;margin-bottom:10px;height:33px;font-size:13px;line-height:33px;margin-right:5px;\\\"><span><a href=\\\"https://www.zhihu.com/topic/19617051\\\" style=\\\"color:inherit;text-decoration:none;\\\" target=\\\"_blank\\\"><div style=\\\"position:relative;display:inline-block;\\\"><div>WebDAV</div></div></a></span></div><div style=\\\"position:relative;display:inline-block;padding:0px 12px;color:rgb(0, 102, 255);border-radius:100px;background:rgba(0, 102, 255, 0.1);vertical-align:middle;overflow:hidden;margin-bottom:10px;height:33px;font-size:13px;line-height:33px;margin-right:5px;\\\"><span><a href=\\\"https://www.zhihu.com/topic/19693136\\\" style=\\\"color:inherit;text-decoration:none;\\\" target=\\\"_blank\\\"><div style=\\\"position:relative;display:inline-block;\\\"><div>为知笔记</div></div></a></span></div><div style=\\\"position:relative;display:inline-block;padding:0px 12px;color:rgb(0, 102, 255);border-radius:100px;background:rgba(0, 102, 255, 0.1);vertical-align:middle;overflow:hidden;margin-bottom:10px;height:33px;font-size:13px;line-height:33px;\\\"><span><a href=\\\"https://www.zhihu.com/topic/19552067\\\" style=\\\"color:inherit;text-decoration:none;\\\" target=\\\"_blank\\\"><div style=\\\"position:relative;display:inline-block;\\\"><div>数据库</div></div></a></span></div></div></div><div style=\\\"overflow:hidden;width:690px;margin:0px auto;\\\"><div style=\\\"background:rgb(255, 255, 255);width:100vw;bottom:0px;left:0px;margin-bottom:10px;\\\"><div style=\\\"display:flex;-webkit-box-align:center;align-items:center;padding:10px 20px;margin:0px -20px -10px;color:rgb(100, 100, 100);background:rgb(255, 255, 255);clear:both;position:relative;\\\"><span style=\\\"flex-shrink:0;margin:0px;\\\"></span><div style=\\\"flex-shrink:0;margin-left:24px;\\\"></div><div style=\\\"flex-shrink:0;margin-left:24px;\\\"><div style=\\\"position:relative;display:inline-block;\\\"><div></div></div></div></div></div></div></div></div></span></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":22549}]"
metadata_diff: {"new":{"id":"f4a7cc04886a41b388a393ec22c0396f","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":1764345896252,"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:20:28.101Z
created_time: 2025-11-28T16:20:28.101Z
type_: 13