Open GoogleCodeExporter opened 9 years ago
[root@centos5 GNU-Linux-x86]# diff confxml.xml ../../confxml.xml
10a11
> <remote ip="192.168.1.24" name="webapps"/>
19d19
< <plugin start="false" name="refreshCDN"/>
Original comment by hqlulu
on 16 Apr 2010 at 2:39
配置文件加上 <plugin start="false" name="refreshCDN"/>
可以正常启动,请问plugin是必须的?
Original comment by hqlulu
on 16 Apr 2010 at 2:41
plugin 不是必须的,如果把start设为false就不起作用
Original comment by zhouyang...@gmail.com
on 16 Apr 2010 at 2:44
遇上类似问题(Segmentation fault),无论是2.5最新的bin
file,还是自己2.5 source编译的,又或者是2.4的bin
file,在我的服务器上都是同样的错误。参考楼上同学将全部�
��掉的plugin加回来的方法也没用。
[root@local install]# GNU-Linux-x86/sersync2.4 -r -o /etc/sersync.xml
对系统参数进行配置
执行命令:echo 50000000 > /proc/sys/fs/inotify/max_user_watches
执行命令:echo 327679 > /proc/sys/fs/inotify/max_queued_events
解析命令行参数
选项: -r 在运行程序前对目标服务器统一推送一次
选项: -o 配置文件名为: /etc/sersync.xml
同步守护线程数: 10
解析配置文件
当前主机ip为: localhost 当前主机端口为8008
开启crontab功能 每隔2880分钟整体同步一次
Segmentation fault
配置如下:
<?xml version="1.0" encoding="ISO-8859-1"?>
<head version="2.5">
<host hostip="localhost" port="8008"></host>
<debug start="true"/>
<fileSystem xfs="false"/>
<filter start="false">
<exclude expression="(.*)\.svn"></exclude>
<exclude expression="(.*)\.gz"></exclude>
<exclude expression="^info/*"></exclude>
<exclude expression="^static/*"></exclude>
</filter>
<inotify>
<delete start="true"/>
<createFolder start="true"/>
<createFile start="false"/>
<closeWrite start="true"/>
<moveFrom start="true"/>
<moveTo start="true"/>
<attrib start="false"/>
<modify start="false"/>
</inotify>
<sersync>
<localpath watch="/data/web/xxx.com">
<remote ip="x.x.x.x" name="xxx"/>
</localpath>
<rsync>
<commonParams params="-artuz"/>
<auth start="false" users="root" passwordfile="/etc/rsync.pas"/>
<userDefinedPort start="false" port="874"/><!-- port=874 -->
<timeout start="false" time="100"/><!-- timeout=100 -->
<ssh start="false"/>
</rsync>
<failLog path="/tmp/rsync_fail_log.sh" timeToExecute="60"/><!--default every 60mins execute once-->
<crontab start="true" schedule="2880"><!--600mins-->
<crontabfilter start="false">
<exclude expression="*.php"></exclude>
<exclude expression="info/*"></exclude>
</crontabfilter>
</crontab>
</sersync>
<plugin start="false" name="refreshCDN"/>
</head>
Original comment by mr.code...@gmail.com
on 3 Sep 2011 at 10:40
Original issue reported on code.google.com by
hqlulu
on 16 Apr 2010 at 2:38