码迷,mamicode.com
首页 > 其他好文 > 详细

svn服务器

时间:2018-03-27 18:45:03      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:svn

  • 安装svn
  • mkdir -p /export/server/svn/repos/projects
  • svnadmin create /export/server/svn/repos/projects/
  • cd /export/server/svn/repos/projects/conf
  • 添加用户: vim passwd

    [users]
    # harry = harryssecret
    # sally = sallyssecret
    niewj = xxxxxx
    test = test

  • 增加权限: vim authz

    18 [aliases]
    19 # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institut e/CN=Joe Average
    20
    21 [groups]
    22 # harry_and_sally = harry,sally
    23 # harry_sally_and_joe = harry,sally,&joe
    24
    25 # [/foo/bar]
    26 # harry = rw
    27 # &joe = r
    28 # =
    29
    30 # [repository:/baz/fuz]
    31 # @harry_and_sally = rw
    32 #
    = r
    33 [projects:/]
    34 niewj = rw
    35 test = r

  • 配置svn权限: vim svnserve.conf

    8 [general]
    9 ### These options control access to the repository for unauthenticated
    10 ### and authenticated users. Valid values are "write", "read",
    11 ### and "none". The sample settings below are the defaults.
    12 anon-access = none
    13 auth-access = write
    14 password-db = passwd
    15 authz-db = authz

  • 启动svnserve : 注意:不到projects下

    svnserve -d -r /export/server/svn/repos/

  • 9.svn://myhost/projects

    svn服务器

    标签:svn

    原文地址:http://blog.51cto.com/coffee/2091712

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!