首页 > 代码库 > Linux中安装rsync

Linux中安装rsync

获取 rsync-3.1.0  我的网盘里放了一个 。地址:

http://pan.baidu.com/s/1dDs4lSt


安装

rsync-3.1.0.tar.gz 
#tar zxvf rsync-3.1.0.tar.gz
#cd rsync-3.1.0
#./configure --prefix=/home/work/rsync
#make 
#make install


配置文件 举例

<span style="font-size:18px;">use chroot = no
max connections=36000
log file=/home/work/rsync/log/rsyncd.log
pid file=/home/work/rsync/rsyncd.pid
lock file=/home/work/rsync/rsyncd.lock

[data]
path = /home/work/www/
comment = data
auth users = work
uid = work
gid = work
secrets file = /home/work/rsync/etc/rsyncd.pas
read only = false
write only = yes</span>


启动

rsync --daemon --port 3334 --config=/home/work/rsync/conf/rsyncd.conf




Linux中安装rsync