zoukankan      html  css  js  c++  java
  • svnsync笔记

    svnsync从库配置

    1.创建空的从库 

    root@test: /svn # svnadmin create test

    2.从库用户配置

    修改authz :

    [groups]
    sync = sync
    
    [/]
    @sync = rw

    3.启动从库

    svnserve -d -r /svn

    svnsync主库配置

    1.初始化

    svnsync init svn://192.168.1.12/test https://127.0.0.1/svn/test --sync-username sync --sync-password sync

    2.同步

    svnsync sync svn://192.168.1.12/test

    3.增加主库hook脚本 post-commit.bat

    @echo off
    svnsync synchronize svn://192.168.5.236/test --source-username tangqiang --source-password tangq --sync-username sync --sync-password sync --non-interactive

    4.在主库提交文件测试从库是否自动同步,报错提示:

    synsync:E170013:Unable to connect to a respository at URL 'https://127.0.0.1/svn/test'

    svnsync: E230001: Server SSL certificate verification failed: certificate issued fro a different hostname, issuer is not trusted

    5.修改hook,增加证书信任参数:

    --source-trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other
    @echo off
    svnsync synchronize svn://192.168.1.12/test --source-username tangqiang --source-password tangq --sync-username sync --sync-password sync --non-interactive --source-trust-server-cert-failures unknown-ca,cn-mismatch,expired,not-yet-valid,other
  • 相关阅读:
    rs485
    RS-232
    Delphi CRC算法, 不错
    Delphi Modbus RTU CRC16校验码
    如何使用Delphi编写Modbus RTU CRC16的校验码
    Delphi CRC算法crcexecute
    Delphi CRC32Verify控件
    Delphi CRC16校验算法实现(转)
    delphi crc校验函数
    JavaScript如何一次性展示几万条数据
  • 原文地址:https://www.cnblogs.com/justbeginning/p/13706107.html
Copyright © 2011-2022 走看看