linux中部署SVN服务器

# yum install subversion

# mkdir /svn

# svnadmin create /svn/project

编辑配置文件 

cd /svn/project/conf


   svnserve.conf只编辑,其他不要打开

  1. anon-access = read  
  2. auth-access = write  
  3. password-db = passwd  
  4. authz-db = authz  



  5. vim passwd.conf修改为:

  6. [users]
    # harry = harryssecret
    # sally = sallyssecret
    maliang = ma
    caojiang =ma

    chupeng = c
    shunxuanxuan = c
    yuyongjun = c
    chongfateng = c
编辑完毕按ESC键退出,输入:wq保存退出

  1. authz修改为



    [aliases]
    # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average


    [groups]
    # harry_and_sally = harry,sally
    # harry_sally_and_joe = harry,sally,&joe
    workgroup = maliang,caojiang,chupeng,shunxuanxuan,yuyongjun,chongfateng


    # [/foo/bar]
    # harry = rw
    # &joe = r
    # * =


    [/]
    maliang = rw
    *=rw


    [/public/]
    @workgroup = rw
    *=rw


    [/employees/]
    maliang = rw
    *=


    [/employees/maliang/]
    maliang = rw
    *=


    [/employees/caojiang/]
    maliang = rw
    caojiang = rw
    *=


    [/employees/chupeng/]
    maliang = rw
    chupeng = rw
    *=



启动svn服务

svnserve -d -r /svn/project/

停止的话是# ps -ef|grep svn

# kill -9 4642 4642是线程号


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值