搭建SVN服务器

来源:互联网 发布:淘宝账号解绑手机号 编辑:程序博客网 时间:2024/05/23 15:50

2010-09-09

 

windows环境下:

1、下载subversion和TortoiseSVN,安装,要注意subversion安装要选complete,否则没有svnserve.exe

2、建个文件夹作为根目录,d:/svnRoot,其下建个code文件夹,在code中右键TortoiseSVN->create repository here,生成一堆文件

3、修改conf中的文件,svnserve中去掉以下几句的注释:

a)    password-db = passwd

b)    anon-access = none

c)    auth-access = write

d)    realm = My First Repository

4、修改passwd文件,设置用户名密码

5、命令行下,进入subversion的bin目录,输入svnserve.exe –d -r d:/svnRoot/code,开启服务

6、设为windows服务:
sc create svnservice  binPath= "..../bin/svnserve.exe --service -r d:/svnRoot" DisplayName= "SvnService" depend= Tcpip start= auto

 

 


搭建过程中遇到的错误有:

1、找不到svnserve.exe,因为安装subversion时没有选择complete导致。

2、开启服务之后,测试checkout能否成功,出现“认证失败”的错误,原因是在svnserve.conf中把authz-db = authz的注释去掉了,而没有相应的修改authz文件,所以又把那个注释加上,就ok了。

 

尚未解决的问题

1、复杂一些的管理功能,比如权限分组,还有待再学一下

2、客户端修改密码,暂时还没做到,有待后续跟进

 

 

原创粉丝点击