2024年4月

断流问题 需要关闭网卡的如下属性
AQC107 解决断流方案,AQC113估计也是一样的,说白了就是把网卡属性里的休眠,节能关掉。

1、Recv Segment Coalescing (IPv4) 关闭
2、Recv Segment Coalescing (IPv6) 关闭
3、Wake from power off state 关闭
3、Wake on link 关闭
4、Wake on Ping 关闭
5、电源管理"允许计算机关闭此设备以节约电源"关闭

安装rsync

apt-get install rsync

设置开机启动

sed -i "s|^RSYNC_ENABLE=.*|RSYNC_ENABLE=true|" /etc/default/rsync

配置rsyncd.conf内容

cat > /etc/rsyncd.conf << EOF
uid = nobody
gid = nobody
use chroot = yes
syslog facility = local5
pid file = /var/lock/rsync.lock
[data]
        path = /data 
        read only = false 
        write only = false
        list = true
#[data]//用户名认证
        #path = /test    
        #read only = false
        #write only = false
        #list = true
        #auth users = rsync        
        #secrets file = /etc/rsyncd.secrets
EOF

服务管理

systemctl restart rsync

详细参数说明

https://download.samba.org/pub/rsync/rsyncd.conf