zoukankan      html  css  js  c++  java
  • rsync相关整理

    第一部分 rsync服务端配置

    1、下载安装

        a、 yum安装。  yum install rsync
        b、 下载rsync安装文件安装
            #tar zxvf rsync-2.6.9.tar.gz
            #cd rsync-2.6.9
            #./configure --prefix=/usr/local/rsync
            #make
            #make install

    2、 开启rsync服务

        a、启动rsync

        #vi /etc/xinetd.d/rsync

    # default: off
    # description: The rsync server is a good addition to an ftp server, as it 
    # allows crc checksumming etc.
    service rsync
    {
        disable = no
        flags           = IPv6
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/rsync
        server_args     = --daemon
        log_on_failure  += USERID
    }     

        b、手动生成配置文件 /etc/rsyncd.conf

    ###########----全局配置-----#############
    #pid file = /var/run/rsyncd.pid   #pid文件,可无
    port = 873                        #监听端口
    uid = root                          # 运行rsync守护进程的用户名
    gid = root                          # 运行rsync守护进程的用户组
    use chroot = yes
    read only = no        
    hosts allow = 127.0.0.1/24 172.18.0.0/16  #允许访问的ip,可不填写,安全起见需要填写
    hosts deney = 183.232.24.190               #拒绝访问ip,可不填写
    
    ###########----模块配置-----#############
    [sinawap]
    path = /usr/local/test
    read only = no
    list = no                                 #不允许列文件
    auth users = username                     #可不填写
    secrets file = /etc/rsync.pas             #如果有用户,可填写密码文件地址如下
    hosts allow = 127.0.0.1/24 172.18.0.0/16  #允许访问的ip,可不填写,安全起见需要填写
    hosts deny =  0.0.0.0/0                   #拒绝访问ip,可不填写
    #transfer logging = yes

        c、启动服务
            a) service xinetd restart
            b) 独立启动 /usr/bin/rsync --deamon

    -----待续-----

  • 相关阅读:
    糗事百科图片爬取
    Linux文件和目录常用命令
    复习
    Win7的快捷键
    开始运行中的快捷键
    TextBox客户端JS赋值 后台获取(转载)
    window.returnValue的用法
    input的readonly属性与TextBox的ReadOnly和Enabled属性区别
    剖析 ADO.NET 批处理更新
    关于C#多线程的WaitHandle
  • 原文地址:https://www.cnblogs.com/yimuren/p/3978737.html
Copyright © 2011-2022 走看看