zoukankan      html  css  js  c++  java
  • Linux下安装配置SVN服务器,windows访问

    1.安装svn

    [root@asus /]# yum install subversion

    2.创建svn仓库

    [root@asus usr]# mkdir svn
    [root@asus svn]# svnadmin create /home/svn

    3.查看svn配置文件

    [root@asus usr]# ls svn
    conf  db  format  hooks  locks  README.txt

      [root@asus svn]# cd conf/
      [root@asus conf]# ls
      authz passwd svnserve.conf

    • authz 是权限控制文件
    • passwd 是帐号密码文件
    • svnserve.conf 是SVN服务配置文件

    4.设置密码

    [root@asus conf]# vim passwd 

      [users]
      # harry = harryssecret
      # sally = sallyssecret
      test1=123456
      test2=123456
      yuanziren=123456

    5.设置权限

    [root@asus conf]# vim authz
    [/]
    yuanziren=rw
    test1=r
    test2=r
    *=
    [groups]
    group1=yuanziren
    group2=test1,test2
    [/]
    @group1=rw
    @group2=r

    6.配置svnserve.conf

    [root@asus conf]# vim svnserve.conf
    anon-access = read #匿名用户可读
    auth-access = write #授权用户可写
    password-db = passwd #使用哪个文件作为账号文件
    authz-db = authz #使用哪个文件作为权限文件
    realm = /home/svn # 认证空间名,版本库所在目录

    7.启动与停止

    [root@asus conf]# svnserve -d -r /usr/svn #启动
    [root@asus conf]# killall svnserve # 停止
    ##-d表示守护进程, -r 表示在后台执行

    8.客户端连接

     

  • 相关阅读:
    hdu 5877 (dfs+树状数组) Weak Pair
    hdu 5876 (补图BFS) Sparse Graph
    bzoj 1051 (强连通) 受欢迎的牛
    UVA 10054 (欧拉回路) The Necklace
    HYSBZ 2743 (树状数组) 采花
    Codeforces 702C Cellular Network
    ZAB协议(Zookeeper atomic Broadcast)
    分布式一致性协议-2PC与3PC(二)
    分布式架构(一)
    redis集群
  • 原文地址:https://www.cnblogs.com/yuanziren/p/13623809.html
Copyright © 2011-2022 走看看