rsync部署同步笔记

博客主要介绍了几个常见问题的解决办法,包括安装编译报错“no acceptable C compiler found in $PATH”,使用“rpm -Uvh *.rpm --nodeps --force”解决;rsync连接失败“ No route to host”,通过防火墙设置解决;以及“Unknown module 'root'”问题,给出了设置module名及同步、覆盖主机的rsync命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.安装编译报错configure: error: no acceptable C compiler found in $PATH 问题解决
rpm -Uvh *.rpm --nodeps --force

2.rsync: failed to connect to 172.16.6.101 (172.16.6.101): No route to host (113)
防火墙 setenforce 0 /etc/sysconfig/selinux 

3.@ERROR: Unknown module 'root'
设置module名

手动:
rsync -vzrtopg --progress --delete root@172.16.6.101::test /home/rsync_file/ --password-file=/usr/local/rsync/etc/rsyncd.passwd #同步主机
rsync -vzrtopg --progress --delete root@172.16.6.85::test /home/rsync_file/ --password-file=/usr/local/rsync/etc/rsync2.pass #覆盖主机

rsync -vzrtopg --progress --delete /home/rsync_file/ root@172.16.6.101::test --password-file=/usr/local/rsync/etc/rsyncd.passwd

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值