• 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

  • 相关阅读:
    [HDU6793] Tokitsukaze and Colorful Tree
    [NOI2020]命运
    [NOI2020]美食家
    模拟9
    晚测2
    模拟8
    联考4
    模拟7
    模拟6
    关于数论
  • 原文地址:https://www.cnblogs.com/taosim/p/3025577.html
Copyright © 2020-2023  润新知