zoukankan      html  css  js  c++  java
  • fedora25的免密码rsync服务配置

     

    目标:实现免密同步数据;

    1、安装rsync包;

    2、手工添加配置文件;

    cat  /etc/rsyncd.conf

    
    # See rsyncd.conf man page for more options.
    
    # configuration example:
    
    pid file = /var/run/rsyncd.pid
    max connections = 5
    exclude = lost+found/
    motd file = /etc/rsyncd.motd 
    log file = /var/log/rsyncd.log
    log format = %t %a %m %f %b
    timeout = 30 
    port=873
    
    [rsynsc]
    uid = root 
    gid = root
    use chroot = yes 
    read only = yes
    path = /xxxxxxxx/path/
    comment = welcome
    list=yes 
    #auth users = test
    #secrets file = /etc/rsyncd.secrets

    开启rsync服务

    /usr/bin/rsync --daemon --config=/etc/rsyncd.conf

    查看rsync服务是否正常运行

    [root@localhost ]# netstat -an | grep 873
    tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 
    tcp6 0 0 :::873 :::* LISTEN 
    unix 3 [ ] STREAM CONNECTED 23873 /run/systemd/journal/stdout

    同步方法:

    rsync -avzP rsync://rsync_server_ip/path/    localpath

    note:

    查看rsync服务器下的目录信息

    rsync -v  rsync://rsync_server_ip/path/ 

  • 相关阅读:
    Java面向对象编程 -1.3
    Java面向对象编程 -1.2
    Java面向对象编程 -1
    Java基础 -5.3
    Java基础 -5.2
    oracle 新建用户
    js密码的匹配正则
    oracle导入和导出和授权
    oracle存储过程语法
    java.lang.NumberFormatException: For input string: "26.0"
  • 原文地址:https://www.cnblogs.com/noxy/p/9261890.html
Copyright © 2011-2022 走看看