rsync指定端口_如何为Linux Rsync指定不同的端口?

本文介绍了如何在Linux中更改rsync的默认端口,包括使用选项明确指定端口、在URL中指定端口以及在通过SSH隧道连接时指定不同端口的方法,以解决网络访问问题。
摘要由CSDN通过智能技术生成
rsync指定端口

rsync指定端口

We have been attempting to use rysnc on remote system to backup. But we get network related error. This means we need to enable access to the remote system. But the problem do not solved with this step. Here is the solutions.

我们一直在尝试在远程系统上使用rysnc进行备份。 但是我们得到与网络有关的错误。 这意味着我们需要启用对远程系统的访问。 但是这个步骤不能解决问题。 这是解决方案。

默认Rsync端口 (Default Rsync Port)

Rsync works as a daemon and listen for TCP network port. The default port configuration provided by Rsync daemon is TCP 873 .

Rsync充当守护程序并侦听TCP网络端口。 Rsync守护程序提供的默认端口配置为TCP 873

明确指定Rsync端口 (Specify Rsync Port Explicitly)

The first method to change default rsync port is using --port option with the port number. In this example we will connect remote system port 1234 rsync daemon.

更改默认rsync端口的第一种方法是将--port选项与端口号一起使用。 在此示例中,我们将连接远程系统端口1234 rsync守护程序。

$ rsync --port=1234 [email protected]:/home /mnt/home

在URL中指定Rsync端口 (Specify Rsync Port In URL)

Another method to psecify different port than default is providing the port number in the connection URL. In this example we will specify the port number as 1234

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值