rsync安装使用中出现的报错
安装 报错 出现 Rsync 使用
2023-09-14 09:01:19 时间
一,查看本地centos的版本:
[root@localhost lib]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core)
说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest
对应的源码可以访问这里获取: https://github.com/liuhongdi/
说明:作者:刘宏缔 邮箱: 371125307@qq.com
二,报错一:
@ERROR: access denied to wwwroot from localhost (127.0.0.1) rsync error: error starting client-server protocol (code 5) at main.c(1657) [Receiver=3.1.3]
解决:
说明:rsync配置文件中,wwwroot这个区域没有放开当前的ip,
添加ip后重启服务
三,报错二:
@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at main.c(1657) [Receiver=3.1.3]
解决:
验证出错,原因是密码错误,检查客户端的密码文件是否正确
此处注意:服务端的密码需要写成: pusher:123456,格式是 用户名:密码,
而客户端的密码是: 123456,也就是密码文件中不需要用户名
四,报错三:
[root@localhost source]# rsync --progress -artuz -R "./abc.txt" pusher@127.0.0.1::wwwroot --password-file=/data/rsync/conf/client.pass sending incremental file list rsync: read error: Connection reset by peer (104) rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.3]
解决:
上传文件时连接被重置,是因为没有写权限,
修改服务端的配置文件,增加写的权限
[root@localhost source]# vi /etc/rsyncd.conf
说明:
增加内容:
read only = no
五,报错四:
[root@localhost source]# rsync -artuz -R "./laoliu.txt" pusher@127.0.0.1::wwwroot --password-file=/data/rsync/conf/client.pass rsync: failed to connect to 127.0.0.1 (127.0.0.1): Connection refused (111) rsync error: error in socket IO (code 10) at clientserver.c(127) [sender=3.1.3]
解决:
Connection refused,连接被拒绝
说明rsync服务没有正常启动,正常启动rsync服务即可
例如:systemctl start rsyncd
六,报错五:
rsyncd启动失败:
[root@localhost source]# systemctl start rsyncd
发现未能成功启动,用status查看:
[root@localhost source]# systemctl status rsyncd
报:failed to create pid file /data/rsync/run/rsyncd.pid: File exists
处理
[root@localhost source]# rm /data/rsync/run/rsyncd.pid rm:是否删除普通文件 '/data/rsync/run/rsyncd.pid'?y [root@localhost source]# systemctl start rsyncd [root@localhost source]# [root@localhost source]# systemctl status rsyncd ● rsyncd.service - fast remote file copy program daemon Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2020-02-25 13:04:51 CST; 4s ago
相关文章
- 无法安装python3的连续报错-mysql include软链接问题
- pycharm安装库报错_pycharm安装numpy失败
- Mac系统安装PS/AI/PR/AE/AU/等软件报错代码501错误解决方案亲测
- 如何利用六西格玛降低汽车助力器螺母安装不良率
- 【解决】pydub FileNotFoundError: [WinError 2] 报错找不到文件及ffmpeg的安装
- [There are unfinished transactions remaining.]【使用本地YUM源安装服务报错解决方法】
- Hive on Tez 的安装配置
- 解决Mac安装PS AI PR AE系列软件报错代码501的解决方案
- 【错误记录】Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )
- Handsome主题安装完后,页面中间部分空白/安装后首页报错,500错误解决方法
- 3D建筑建模SketchUp草图大师软件中文版,SketchUp安装教程下载
- Linux下Hive安装指南(linuxhive安装)
- 安装Python时,报错 zipimport.ZipImportError: can’t decompress data; zlib not available详解编程语言
- 利用虚拟机安装Linux:简单易行(利用虚拟机安装linux)
- Ubuntu 12.04 server 安装 webmin
- 破解Linux yum安装报错问题(linuxyum报错)
- 安装Oracle远程连接:基于SSH的实施方法(ssh安装oracle)
- Oracle11g安装遇见的挑战:报错问题分析(oracle11g安装报错)
- 如何通过文本模式安装Linux操作系统(文本模式安装linux)
- Linux中gtk框架的下载及安装方法(gtklinux下载)
- 掌握MySQL个人安装,轻松实现数据存储查询与操作(mysql个人安装有啥用)
- bat安装MySQL遭遇的坑提前发现再报错(bat安装mysql的坑)
- oracle11安装指南解读安装目录(oracle11安装目录)
- oracle12c安装报错:PRVF-0002的解决方法