<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://www.gentoo-zh.org/extern.php?action=feed&amp;tid=615&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo中文社区 / sersync]]></title>
		<link>https://www.gentoo-zh.org/viewtopic.php?id=615</link>
		<description><![CDATA[sersync 最近发表的帖子。]]></description>
		<lastBuildDate>Sat, 10 Dec 2022 23:58:47 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[sersync]]></title>
			<link>https://www.gentoo-zh.org/viewtopic.php?pid=658#p658</link>
			<description><![CDATA[<p>tar -zxvf sersync2.5.4_64bit_binary_stable_final.tar.gz<br />cd GNU-Linux-x86/</p><p>测试执行:<br />cd /home/sftp &amp;&amp; rsync -artuz -R --delete ./&#160; --port=873 root@192.168.110.3::bjjxj --password-file=/home/qinshun/shell/readfile/rsync.password</p><p>1.在主服务器上开启sersync守护进程,使sersync在后台运行，开启实时同步。<br />./sersync -d<br />2.在开启实时监控的之前对主服务器目录与远程目标机目录进行一次整体同步<br />./sersync -r<br />3.查看启动参数帮助<br />./sersync --help<br />4.指定配置文件<br />./sersync -o XXXX.xml<br />对于sersync使用可执行文件目录下的默认配置文件confxml.xml，如果需要使用另一个配置文件，可以使用－o参数指定其它配置文件。<br />5.指定默认的线程池的线程总数<br />./sersync -n num<br />例如 ./sersync -n 5 则指定线程总数为5，如果不指定，默认启动线程池数量是10，如果cpu使用过高，可以通过这个参数调低，如果机器配置较高，可以用－n跳高线程总数。<br />6.不进行同步，只运行插件<br />./sersync -m pluginName<br />&#160; &#160; &#160; &#160;例如./sersync -m command，则在监控到文件事件后，不对远程目标服务器进行同步，而是直接运行command插件。<br />7.多个参数可以配合使用<br />./sersync -n 8 -o abc.xml -r -d<br />表示，设置线程池工作线程为8个，指定abc.xml作为配置文件，在实时监控前作一次整体同步，以守护进程方式在后台运行。<br />8.通常情况下，对本地到远程整体同步一遍后，在后台运行实时同步。<br />./sersync -r -d</p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Sat, 10 Dec 2022 23:58:47 +0000</pubDate>
			<guid>https://www.gentoo-zh.org/viewtopic.php?pid=658#p658</guid>
		</item>
	</channel>
</rss>
