黑帽联盟

 找回密码
 会员注册
查看: 1341|回复: 0

[基础服务] bash: rsync: 未找到命令【某一端没有安装rsync(源机子或目标机子没装)】

[复制链接]

908

主题

38

听众

3384

积分

管理员

Rank: 9Rank: 9Rank: 9

  • TA的每日心情
    无聊
    2026-9-8 21:35
  • 签到天数: 1707 天

    [LV.Master]伴坛终老

    今天学习了rsync的同步操作,本打算往服务器同步一些数据,于是报了一下错误:


    bash: rsync: 未找到命令
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]

    rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52/rsync/io.c(453) [sender=2.6.9]


    通过排查客户机和服务器,发现居然是服务器端没有安装rsync。


    在服务器端安装rsync即可:
    [root@localhost ~]# yum -y install rsync

    注:


    同步与被同步机器都要安装rsync


    否则会出现报错
    bash: rsync: command not found

    rsync: connection unexpectedly closed (0 bytes received so far) [sender]

    rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]



    您需要登录后才可以回帖 登录 | 会员注册

    发布主题 !fastreply! 收藏帖子 返回列表 搜索
    回顶部