svn服务器配置

1.服务器程序安装
svn服务器端程序下载地址:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100

2.创建repos
C:\Program Files\Subversion\bin\svnadmin create E:\repos

3.创建帐号
E:\repos\conf
修改passwd文件,添加用户

4.修改E:\repos\conf\svnserve.conf文件如下:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
[color=red]anon-access = none[/color]
[color=red]auth-access = write[/color]
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
[color=red]password-db = passwd[/color]


5.配置服务
sc create svn binpath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r D:\repos" displayname= "Subversion Server" depend= Tcpip start= auto

注意:sc语法,每个参数=号后面要有空格

如果以前有配置过,需要清理svn的账户缓存:
目录如下:
C:\Documents and Settings\Administrator\Application Data\Subversion

6.同步配置
svnadmin create H:\svnrepos

copy H:\svnrepos\hocks\pre-revprop-change.tmpl H:\svnrepos\hocks\pre-revprop-change.bat

修改最后的exit 1 为exit 0

svnsync init svn://备份地址 svn://主地址

svnsync sync svn://备份地址
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

onlydo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值