rsyncd - 全局部分中常用全局参数配置说明

本文详细介绍了rsyncd服务的全局参数配置,包括motdfile、pidfile等,并解释了这些参数的作用及默认设置。此外还提供了模块参数的示例配置。

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

rsyncd - 全局部分中常用全局参数配置说明

# 本文件的默认位置是/etc/rsyncd.conf
# GLOBAL PARAMETERS
# The first parameters in the file (before a [module] header) are the global parameters.
# You may also include any module parameters in the global part of the config file in which case the supplied value will override the default for that parameter.
# 在文件中的最开始的段落(在一个[module]头部之前)是全局参数
# 在配置文件的全局部分也可以包含任何模块参数,此时所提供的值将替换该参数的默认值。
# motd file
# This parameter allows you to specify a "message of the day" to display to clients on each connect. This usually contains site information and any legal notices. The default is no motd file.
# 该参数允许指定一个“每日消息”用于在每个链接中显示在客户端,通常包含站点信息和任何法律提示。默认值是无motd文件。
motd file = /var/rsync/welcome.msg
# pid file
# This parameter tells the rsync daemon to write its process ID to that file. If the file already exists, the rsync daemon will abort rather than overwrite the file.
# 该参数指示rsync守护进程将自身的进程ID写到该文件。如果该文件已存在,rsync守护进程将忽略,而不是重写该文件
pid file = /var/run/rsyncd.pid
# DEFAULT MODULE PARAMETERS
use chroot = no
max connections = 20
log file = /var/log/rsyncd.log
lock file = /var/run/rsync.lock
uid = nobody
gid = nobody
# MODULE PARAMETERS
[module]
comment = module comment
path = /path/to/module/
read only = yes
list = no
hosts allow = 192.168.1.2

[rsync - 官方网站]

http://rsync.samba.org/

[rsync - 关键词]

rsync
rsyncd

[rsync - 相关问题]

全局部分中常用全局参数配置说明

全局部分中常用模块参数配置说明

模块常用配置说明

客户端常用参数

for Windows (cygwin)

远程shell模式和rsync守护进程模式

22.6. File Synchronization. Building Internet Firewalls, 2nd Edition

Hack 92 Mirroring Web Sites with wget and rsync. Spidering Hacks

Linux Security Cookbook - Recipe 1.16 Integrity Checking with rsync

Linux Security Cookbook - Recipe 1.6 Remote Integrity Checking

Linux Security Cookbook - Recipe 6.3 Copying Files Remotely

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值