svn import

需要的软件

apr,postgresql, sqlite, apr-util, neon, subversion

ipm -ivh*.rpm安装

 1. 创建库文件所在的目录 (svnroot用户进行下面的操作)
# mkdir /home/svnroot/repository
2. 创建仓库"test"
# /usr/bin/svnadmin create /home/svnroot/repository/test

3. 导入

./svn import /root/src/ file:///repository/test/-m "initial import"

3. 启动svnserver

# svnserve-d -r /home/svnroot/repository

svn server

修改启动方式:使用ssh 隧道方式

#cd/usr/bin

#mdsvnserve svnserve.bin

#touchsvnserve

在svnserve中添加

#!/bin/sh

exec/usr/bin/svnserve.bin -r /hom/svn "$@"

4.svn://works, bug svn+ssh:// says No repository found

  Theurl structure is different - ssh+svn behaves exactly like file:///so the path needs to be the actual filepath of the repository, not the svnrelative path

5. linux下"没有设置 SVN_EDITOR...."错误解决方法  

exportSVN_EDITOR=vim

 

6. 建好仓库后如 test

    1.将tmp下的导入,建立了trunk,branches,tags

    svn import/root/tmp/ file:///home/svn/test/ -m "initial import"

    2.改动conf下的svnserver文件,使用authz-db=authz认证。修改authz,添加认证群组

    3.修改db目录的所有组,增加组的写权限

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值