国语自产精品视频在线看:您身边最放心的安全下载站! 最新软件|热门排行|软件分类|软件专题|厂商大全

国语自产精品视频在线看

技术教程
您的位置:首页软件应用 → rsync: The server is configured to refuse --delete 错误的解决方法之一

rsync: The server is configured to refuse --delete 错误的解决方法之一

我要评论 2013/08/29 16:24:36 来源:国语自产精品视频在线看 编辑:zbbingyang.com [ ] 评论:0 点击:544次

使用🚿rsync向服务🌨器端传输数据时【shí】,如果使【rú guǒ shǐ】用🚿了【le】 --delete 参数,有可能【yǒu kě néng】会遇到以下错🎒误:

rsync: The server is configured to refuse --delete

rsync error: requested action not supported (code 4) at clientserver.c(685) [receiver=2.6.8]

rsync: read error: Connection reset by peer (104)

rsync error: error in rsync protocol data stream (code 12) at io.c(614) [sender=2.6.8]


出现上面的错误有可能是以【néng shì yǐ】下几个🥑原因【yuán yīn】🙌:

(1)在rsync服务器端的配🎭置文件【zhì wén jiàn】♏ rsyncd.conf 中添加了【le】 refuse options=delete。

(2)修改配置文件【zhì wén jiàn】⛎后,没有重启【qǐ】😺rsync服务器【fú wù qì】♎程序。

对🌐rsync服务器来说【lái shuō】⏩,你修改了它的【le tā de】💁配置文件🎹,如果不重启🍯rsync服务器程序的话🚹,在某些【zài mǒu xiē】情况下是可以生效的,而在某【ér zài mǒu】些情况下则是【xià zé shì】无效的【wú xiào de】。

据我已🕙经试验过的情【guò de qíng】况:在 rsyncd.conf 中【zhōng】🤞,修改一🏥个block(把以方🚤括号括👔起来的一段配置称为🔽一个💷block)中【zhōng】的配🚄置,不需要【bú xū yào】重🐎启rsync服务器【fú wù qì】🤐程序【chéng xù】,但是如果是公【guǒ shì gōng】共全局🅰配置参【pèi zhì cān】数【shù】(即【jí】🎳:不在block中【zhōng】🤞,而是在【ér shì zài】 rsyncd.conf 文件最【wén jiàn zuì】上方的配置参【pèi zhì cān】数【shù】),那么就需要重🐎启rsync服务器【fú wù qì】🤐程序【chéng xù】,才能使【cái néng shǐ】配置生😲效【xiào】。

顺便再记一下🐜rsync的各种返回值【fǎn huí zhí】的含义【de hán yì】🗄:

0 Success

1 Syntax or usage error

2 Protocol incompatibility

3 Errors selecting input/output files, dirs

4 Requested action not supported: an attempt was made to manipulate 64-bit files on a platform that cannot support them; or an option was specified that is supported by the client and not by the server.

5 Error starting client-server protocol

10 Error in socket I/O

11 Error in file I/O

12 Error in rsync protocol data stream

13 Errors with program diagnostics

14 Error in IPC code

20 Received SIGUSR1 or SIGINT

21 Some error returned by waitpid()

22 Error allocating core memory buffers

23 Partial transfer due to error

24 Partial transfer due to vanished source files

30 Timeout in data send/receive

关键词:rsync

阅读本文后您有什么感想? 已有 人给出评价!

  • 0 欢迎喜欢
  • 0 白痴
  • 0 拜托
  • 0 哇
  • 0 加油
  • 0 鄙视