zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    关于css3的fixed布局
    关于json和字符串之间的转换
    关于清楚浮动
    关于ajax跨域问题
    关于css的hack问题
    容器的使用(6-12)
    什么是Docker?(6-12)
    第五章 自下而上分析
    八、结构体和接口
    七、清楚的指针
  • 原文地址:https://www.cnblogs.com/taosim/p/3025577.html
Copyright © 2011-2022 走看看