id: c494bf5d66f54958aa9fa2075f83d2d0
parent_id: 
item_type: 1
item_id: c8c57583092b41bbbc6350f6fcdceaf0
item_updated_time: 1764345565332
title_diff: "[{\"diffs\":[[1,\"SyncY安装配置方法  SyncY同步软件技术博客\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":26}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>SyncY安装配置方法 | SyncY同步软件技术博客</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  <meta name=\\\"application-data:2525275\\\" content=\\\"6692893/s30/eefd5e08-89ba-4fda-81c4-5b64a5266e6f/app.yinxiang.com\\\"/>\\\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=\\\"9928\\\"></a>\\\r\\\n<h1>SyncY安装配置方法 | SyncY同步软件技术博客</h1>\\\r\\\n\\\r\\\n<div><span><br/><div style=\\\"font-size: 16px\\\"><div style=\\\"font-size:87.5%;vertical-align:baseline;overflow-y:scroll;\\\"><div style=\\\"font-size:1rem;vertical-align:baseline;line-height:1;font-family:Helvetica, Arial, sans-serif;text-rendering:optimizeLegibility;color:rgb(68, 68, 68);background-color:rgb(230, 230, 230);\\\"><div style=\\\"font-size:100%;vertical-align:baseline;background-color:rgb(255, 255, 255);overflow:hidden;box-shadow:rgba(100, 100, 100, 0.298039) 0px 2px 6px;\\\"><div style=\\\"font-size:100%;vertical-align:baseline;\\\"><div style=\\\"font-size:100%;vertical-align:baseline;\\\"><div style=\\\"font-size:100%;vertical-align:baseline;\\\"><div style=\\\"font-size:100%;vertical-align:baseline;word-wrap:break-word;\\\">\\\n\\t\\t\\t\\t<div style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;display:block;margin-bottom:1.714285714rem;\\\">\\\n\\t\\t\\t\\\n\\t\\t\\t\\t\\t\\t<h1 style=\\\"margin:0px;padding:0px;border:0px;vertical-align:baseline;clear:both;font-size:1.571428571rem;line-height:1.2;font-weight:normal;\\\">SyncY安装配置方法</h1>\\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<div style=\\\"margin:0px;padding:0px;border:0px;vertical-align:baseline;font-size:0.928571429rem;margin-top:1.714285714rem;line-height:1.846153846;color:rgb(117, 117, 117);\\\">\\\n\\t\\t\\t\\t\\t<a href=\\\"http://www.syncy.cn/index.php/syncysetup/#comments\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">84 Replies</a>\\t\\t\\t\\t</div>\\\n\\t\\t\\t\\t\\t</div>\\\n\\\n\\t\\t\\t\\t<div style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;line-height:1.714285714;\\\">\\\n\\t\\t\\t<h2 style=\\\"padding:0px;border:0px;vertical-align:baseline;clear:both;margin:1.714285714rem 0px;font-size:1.285714286rem;line-height:1.6;\\\">一、环境准备</h2>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">1、Python版的安装：<br/>\\\n</strong></span> 在openwrt12.09系统必须安装如下包：</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\"><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">libcurl</span></em><br/><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">\\\n</span><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">libopenssl</span></em><br/><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">\\\n</span><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\"> kmod-nls-utf8</span></em><br/><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">\\\n</span><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">Python</span><br/><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">\\\n</span></em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">python-curl</span></em></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\">安装以上包需要4M左右的空闲空间，如空间空间不足，只有通过u盘来扩展了，这个是没法精简了,除非有能人自己编译把不需要的删除了。 如是其它版本系统，请对应的安装相应的包。</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\">Windows系统上安装SyncY：<br/>\\\n</span></strong><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#000000;\\\">分别安装如下几个包</span></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\"><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">python2.7</em><br/>\\\n<em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">pywin32</em><br/>\\\n<em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">pycurl</em><br/>\\\n<em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">pycrypto</em></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">以上包在本地下载里面有下载。</em>windows系统上配置文件默认和程序文件在一个文件夹下面，如果不在一个文件夹下面，请修改syncy.py文件中的配置文件地址。<span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">配置文件中设置的文件夹分隔符请使用“/”，而不要使用windows默认的“\\\\”，如D盘下的test目录，请设置为“d:/test”。</strong><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#000000;\\\">Windows系统默认字符集为GBK，如果</span></span>同步下来的中文文件名存在乱码，请根据自己的系统环境修改字符集，用编辑器打开syncy.py文件，搜索“__CHARSET__ = ‘GBK’”，把GBK改成需要的字符集即可。</p>\\\n<h2 style=\\\"padding:0px;border:0px;vertical-align:baseline;clear:both;margin:1.714285714rem 0px;font-size:1.285714286rem;line-height:1.6;padding-left:60px;\\\"></h2>\\\n<h2 style=\\\"padding:0px;border:0px;vertical-align:baseline;clear:both;margin:1.714285714rem 0px;font-size:1.285714286rem;line-height:1.6;padding-left:60px;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#ff0000;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">加密设置注意事项（v2.5.0及之后版本）：</strong></span></h2>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\">        一旦启用加密，请牢记密钥及设置的加密方法，将来下载文件时加密密钥或加密方法错误将会导致下载的文件数据不正确。某个同步文件夹一旦设置为启用加密，所有上传和下载的文件都将进行加密或解密操作，因此云端的加密文件夹下面请勿手动添加明文文件！如果已有文件上传至云端，要想修改加密方法或密钥，最好全部重新上传所有文件，否则会导致云端存在不同加密方法或密钥加密出来的文件，将来下载时将无法区分，导致部分文件无法解密！</span></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">加密设置请参考<a href=\\\"http://www.syncy.cn/index.php/syncyconfighelp/\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\">配置文件说明</a>。</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#ff0000;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">Perl和Bash版已不再提供支持，请安装Python版，Python V2版支持多任务多线程，功能更强。</strong></span><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\"><br/>\\\n2、Perl v1.0.4版的安装：<br/>\\\n</span></strong> 1.0.4 Perl版及之后的是精简过后的，安装包少了不少，安装空间占用在1M左右，安装包如下：</del></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\"><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">libcurl<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">libopenssl</em></del><br/>\\\n<del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"> <em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\"> kmod-nls-utf8<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perl<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-essential<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-digest<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perl-www-curl<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-xsloader<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-dynaloader<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-config<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-autoloader<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">perlbase-utf8</em></del></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"> 如是其它系统，请对应的安装相应的包，在cpan.org网站上可通过perlbase-后面的名称来搜索相应的包并下载源码，各个包还可能依赖别的包，如运行报错，提示缺少包，请根据提示安装相应的包。</del></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:#993300;\\\"><strong style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">3、Bash版的安装：</strong></span></del><br/>\\\n<del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"> Bash版的安装在openwrt上需要以下包：</del></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\"><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\"><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">curl<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">libopenssl<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">kmod-nls-utf8<br/>\\\n</em><em style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">bash</em></del></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><del style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;color:rgb(51, 51, 51);\\\">bash版本最好是4.2的，3.x版的使用存在一些问题，curl能安装最新版最好安装最新版，其他类型系统请对应安装相应的包。</del></p>\\\n<h2 style=\\\"padding:0px;border:0px;vertical-align:baseline;clear:both;margin:1.714285714rem 0px;font-size:1.285714286rem;line-height:1.6;\\\">二、安装SyncY</h2>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\"><span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">1、OpenWrt系统（含luci界面）： OpenWrt系统安装最新的luci版本（只有Python和Perl语言的有）的，下载安装包并上传到tmp目录，完成后执行 #opkg install /tmp/SyncY-Python-luci_1.0.10-1_all.ipk（Perl版对于修改文件名），后面的配置从luci界面配置即可。</span></p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\">2、ssh安装：<br/>\\\na)、复制配置文件syncy到/etc/config目录下，复制syncy.py到/usr/bin目录下，授予syncy.py可执行权限；<br/>\\\nb)、执行syncy.py获取用户码， 获取用户码后按照提示打开百度授权页面<a href=\\\"https://openapi.baidu.com/device\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\" target=\\\"_blank\\\">https://openapi.baidu.com/device</a>，如下图：<br/>\\\n<a href=\\\"http://www.syncy.cn/index.php/image/syncy-install/a1.jpg\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\"><img src=\\\":/d92425b4d9b145df8c4a7d070370627c\\\" type=\\\"image/jpeg\\\" data-filename=\\\"Image.jpg\\\" alt=\\\"a1.jpg\\\" height=\\\"354\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;max-width:100%;border-radius:3px;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 4px;\\\" width=\\\"565\\\"/></a><br/>\\\n输入用户码（用户码有效期30分钟），输入完成用户码后点“继续”按钮进入授权确认界面，如下图：<br/>\\\n<a href=\\\"http://www.syncy.cn/index.php/image/syncy-install/a2.jpg\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\"><img src=\\\":/1dc3c3bf32454ac696fbbdf38865e3dd\\\" type=\\\"image/jpeg\\\" data-filename=\\\"Image.jpg\\\" alt=\\\"a2.jpg\\\" height=\\\"396\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;max-width:100%;border-radius:3px;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 4px;\\\" width=\\\"544\\\"/></a><br/>\\\n最后点“授权”完成授权。<br/>\\\n<a href=\\\"http://www.syncy.cn/index.php/image/syncy-install/a3.jpg\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\"><img src=\\\":/8997d27ff9ab4fa796746900cf1ec23d\\\" type=\\\"image/jpeg\\\" data-filename=\\\"Image.jpg\\\" alt=\\\"a3.jpg\\\" height=\\\"320\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;max-width:100%;border-radius:3px;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 4px;\\\" width=\\\"565\\\"/></a><a href=\\\"http://www.syncy.cn/index.php/image/syncy-install/a4.jpg\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(33, 117, 155);\\\"><img src=\\\":/779641e9ba2240b99437beff2d7d8079\\\" type=\\\"image/jpeg\\\" data-filename=\\\"Image.jpg\\\" alt=\\\"a4.jpg\\\" height=\\\"174\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;max-width:100%;border-radius:3px;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 4px;\\\" width=\\\"477\\\"/></a><br/>\\\nc)、完成授权后回到ssh终端按回车键完成本地的授权操作，但显示“Get device token success.”表示授权完成。</p>\\\n<h2 style=\\\"padding:0px;border:0px;vertical-align:baseline;clear:both;margin:1.714285714rem 0px;font-size:1.285714286rem;line-height:1.6;\\\">三、设置自动启动</h2>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\">只适用于OpenWrt系统不含luci的Python版和Perl版，<span style=\\\"x-evernote:highlighted;background-color:#F6EE96;\\\">含luci的在安装时已经设置了相应内容，只需要在luci界面上配置即可</span>，bash版只能通过计划任务来设置。<br/>\\\n在/etc/init.d目录下建立syncy文件并授予可执行权限，文件内容如下：</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">#!/bin/sh /etc/rc.common<br/>\\\n# Copyright (C) 2006-2011 OpenWrt.org</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">START=99<br/>\\\nSTOP=10</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">start() {<br/>\\\n/usr/bin/syncy.py &amp;<br/>\\\n}</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">stop() {<br/>\\\n[ -e /var/run/syncy.pid ] &amp;&amp; {<br/>\\\nsypid=$(cat /var/run/syncy.pid)<br/>\\\nkill $sypid<br/>\\\n}<br/>\\\n}</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:90px;\\\">restart() {<br/>\\\n[ -e /var/run/syncy.pid ] &amp;&amp; {<br/>\\\nsypid=$(cat /var/run/syncy.pid)<br/>\\\nkill $sypid<br/>\\\n}<br/>\\\nsleep 1<br/>\\\n/usr/bin/syncy.py &amp;<br/>\\\n}</p>\\\n<p style=\\\"padding:0px;border:0px;font-size:100%;vertical-align:baseline;margin:0px 0px 1.714285714rem;line-height:1.714285714;padding-left:60px;\\\">保存文件并执行#/etc/init.d/syncy enable来启用自动启动，Perl版对应的吧syncy.py改成syncy.pl。其他类型的系统请参照设置，不了解的可以百度一下。</p>\\\n\\t\\t\\t\\t\\t</div>\\\n\\t\\t\\\n\\t\\t<div style=\\\"margin:0px;padding:0px;border:0px;vertical-align:baseline;display:block;clear:both;font-size:0.928571429rem;margin-top:1.714285714rem;line-height:1.846153846;color:rgb(117, 117, 117);\\\">\\\n\\t\\t\\tThis entry was posted in <a href=\\\"http://www.syncy.cn/index.php/category/syncy/\\\" rel=\\\"category tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">SyncY同步软件</a>, <a href=\\\"http://www.syncy.cn/index.php/category/help/\\\" rel=\\\"category tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">帮助说明</a> and tagged <a href=\\\"http://www.syncy.cn/index.php/tag/aes/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">AES</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/arc4/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">ARC4</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/blowfish/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Blowfish</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/centos/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">CentOS</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/dd-wrt/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">DD-Wrt</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/linux/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Linux</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/open-wrt/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Open-Wrt</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/perl/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Perl版</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/python/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Python版</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/syncy/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">SyncY</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/tomato/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">Tomato</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/crypto/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">加密</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/sync/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">同步</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/baidudisk/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">百度网盘</a>, <a href=\\\"http://www.syncy.cn/index.php/tag/software/\\\" rel=\\\"tag\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\">软件</a> on <a href=\\\"http://www.syncy.cn/index.php/syncysetup/\\\" rel=\\\"bookmark\\\" style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;outline:none;color:rgb(117, 117, 117);\\\" title=\\\"15:33\\\"><span style=\\\"margin:0px;padding:0px;border:0px;font-size:100%;vertical-align:baseline;\\\">2014-05-03</span></a>.\\t\\t\\t\\t\\t\\t\\t\\t</div>\\\n\\t</div></div></div></div></div></div></div></div><br/></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":20961}]"
metadata_diff: {"new":{"id":"c8c57583092b41bbbc6350f6fcdceaf0","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","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":1764348824607,"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-28T21:04:01.097Z
created_time: 2025-11-28T21:04:01.097Z
type_: 13