黑松山资源网 Design By www.paidiu.com
服务器端:
http://rsync.samba.org/ 服务器端(cwRsyncServer)。
安装目录: E:\cwRsyncServer
端口: 52326
ip: 219.152.120.82
一:修改cwRsyncServer配置文件 E:\cwRsyncServer\rsyncd.conf
#########
port = 52326
use chroot = false
strict modes = false
read only = yes
list = no
hosts allow = *
max connections = 10
secrets file = rsyncd.secrets #指定用户登录的密码文件
motd file = rsyncd.motd #连接上rsync server时显示的欢迎信息
log file = rsyncd.log
pid file = rsyncd.pid
transfer logging = yes
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes
[t_task]
path = /cygdrive/c/work
read only = false
transfer logging = yes
#################################
二:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为用户名:密码
如: tly:fjs249slke
客户端:
http://rsync.samba.org/ 下载cwRsync客户端(cwRsync)
安装目录: E:\cwRsync
三:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为密码
如:fjs249slke
四:开始–>运行–>cmd 输入以下命令即可同步服务器端t_task模块到客户端e:/y目录下。
E:\cwRsync\bin\rsync.exe -vazu –exclude article/ –progress –delete –
password-file=E:\cwRsync\rsyncd.secrets
rsync://odinxu@219.152.120.82:52326/t_task /cygdrive/e/y
照做可同步服务了,如果不行,1.检查服务器是否有开服务端口,命令行输入( netstat -a ) 可查看服务器开的端口。就是上面的52326端口。2.客户端命令行输入( telnet 服务端ip 服务端口 ) 能否连接服务器端。3.检查配置文件是否跟上面一样。
注:以上为匿名连接入服务器端,一般会在模块里添加 auth user= odinxu 指定用户,一定要注意,指定的用户必须要登陆才能进行同步服务。 我在这里掐了很久,模块里指定了用户,用户又没有登陆,导致出错。
新手常出现的错误:
错误1: rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receive
r=3.0.2]
解决:很大可能是服务器端没有开启 rsync 服务。开启服务。
错误2:@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:服务器端同步目录没有权限,cwrsync默认用户是Svcwrsync。为同步目录添加用户Svcwrsync权限。
错误3:@ERROR: failed to open lock file
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:配置文件 rsync.conf中添加 lock file = rsyncd.lock 即可解决。
更具体的实现方法可以参考:https://www.jb51.net/article/19663.htm
http://rsync.samba.org/ 服务器端(cwRsyncServer)。
安装目录: E:\cwRsyncServer
端口: 52326
ip: 219.152.120.82
一:修改cwRsyncServer配置文件 E:\cwRsyncServer\rsyncd.conf
#########
port = 52326
use chroot = false
strict modes = false
read only = yes
list = no
hosts allow = *
max connections = 10
secrets file = rsyncd.secrets #指定用户登录的密码文件
motd file = rsyncd.motd #连接上rsync server时显示的欢迎信息
log file = rsyncd.log
pid file = rsyncd.pid
transfer logging = yes
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes
[t_task]
path = /cygdrive/c/work
read only = false
transfer logging = yes
#################################
二:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为用户名:密码
如: tly:fjs249slke
客户端:
http://rsync.samba.org/ 下载cwRsync客户端(cwRsync)
安装目录: E:\cwRsync
三:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为密码
如:fjs249slke
四:开始–>运行–>cmd 输入以下命令即可同步服务器端t_task模块到客户端e:/y目录下。
E:\cwRsync\bin\rsync.exe -vazu –exclude article/ –progress –delete –
password-file=E:\cwRsync\rsyncd.secrets
rsync://odinxu@219.152.120.82:52326/t_task /cygdrive/e/y
照做可同步服务了,如果不行,1.检查服务器是否有开服务端口,命令行输入( netstat -a ) 可查看服务器开的端口。就是上面的52326端口。2.客户端命令行输入( telnet 服务端ip 服务端口 ) 能否连接服务器端。3.检查配置文件是否跟上面一样。
注:以上为匿名连接入服务器端,一般会在模块里添加 auth user= odinxu 指定用户,一定要注意,指定的用户必须要登陆才能进行同步服务。 我在这里掐了很久,模块里指定了用户,用户又没有登陆,导致出错。
新手常出现的错误:
错误1: rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receive
r=3.0.2]
解决:很大可能是服务器端没有开启 rsync 服务。开启服务。
错误2:@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:服务器端同步目录没有权限,cwrsync默认用户是Svcwrsync。为同步目录添加用户Svcwrsync权限。
错误3:@ERROR: failed to open lock file
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:配置文件 rsync.conf中添加 lock file = rsyncd.lock 即可解决。
更具体的实现方法可以参考:https://www.jb51.net/article/19663.htm
黑松山资源网 Design By www.paidiu.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
黑松山资源网 Design By www.paidiu.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年05月18日
2024年05月18日
- 群星《乘风2024 第1期》[FLAC/分轨][322.4MB]
- 【古典音乐】卡拉扬《莫扎特·魔笛(全剧)》2CD.2015[FLAC+CUE整轨]
- Yurika《ただいま》【Hi-Res】24bit-96kHz【flac】
- 张琍敏2006-金鼎奖系列14[台湾版]CD1[WAV+CUE]
- 林一峰2008-城市旅人[香港首版][WAV+CUE]
- 群星1990-六个梦电视原声带[日本版][WAV+CUE]
- [In-Akustik7801]KissedByASong-《Dynaudio丹拿发烧示范盘》(2014)HQCD[WAV+CUE]
- 群星《17号音乐仓库2 第10期》[320K/MP3][66.53MB]
- 群星《17号音乐仓库2 第10期》[FLAC/分轨][163.67MB]
- 宝丽金50周年《古典篇》3CD限定盘[低速原抓WAV+CUE][1.8G]
- 群星.1986-新格名曲精选-歌3【新格】【WAV+CUE】
- 【ABC唱片】徐刚《独步外滩SACD》ISO+WAV分轨
- 刘月宁《扬琴独奏-木兰辞变奏曲》[FLAC+CUE]
- 陈奕迅《48首选》[WAV分轨][1.8G]
- 林忆莲《陪着我走》 SACD DSD64[DSF][1.1G]