一、准备

  1. 修改/etc/default/rsync

    RSYNC_ENABLE=true

  2. 安装rsync包

    apt-get update && apt-get install rsync

  3. 编辑/etc/rsyncd.conf

    pid file = /var/run/rsyncd.pid

    lock file = /var/run/rsyncd.lock

    log file = /var/log/rsyncd.log

    [modules]

    path = /home/newbie/pelican/

    uid = newbie

    gid = newbie

    use chroot = no

    read only = no

    list = false

    post-xfer exec = pelican /home/newbie/pelican/content/ -s /home/newbie/pelican/pelicanconf.py -o /home/www/site/pelican


    [for73]

    path = /home/newbie/cbc3/for_73_module/

    hosts allow = 10.63.255.73, 127.0.0.1

  4. 其他的附加内容日后添加