rsync有个max connections配置段

一年偶尔有几次就不行了;    

报错:

@ERROR: max connections (8) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
[root@iiii ~]# ./rsync.sh
@ERROR: max connections (8) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
[root@iiii ~]# ./rsync.sh
@ERROR: max connections (8) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
You have new mail in /var/spool/mail/root
[root@iiii ~]# ./rsync.sh
@ERROR: max connections (8) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
[root@iiii ~]# ./rsync.sh
@ERROR: max connections (8) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
[root@iiii ~]# ./rsync.sh

  

 可以设置大些:

 

max connections = 25

 

另外,多台机器同步时候的频率分开些:

比如:

*/1 * * * * /root/rsync.sh

*/2 * * * * /root/rsync.sh

*/3 * * * * /root/rsync.sh

 

posted @ 2013-04-17 10:09  陳聽溪  阅读(1820)  评论(0编辑  收藏  举报