读书人

配置库svn svnserve windows筹建服务

发布时间: 2012-10-20 14:12:48 作者: rapoo

配置库svn svnserve windows搭建服务
1.从http://subversion.tigris.org/files/documents/15/44102/svn-win32-1.5.4.zip下载subversion;

2.将下载好的zip包进行解压,例如解压到:E:\svn-win32-1.5.4;

3.在MS-DOS中切换到E:\svn-win32-1.5.4\bin中;

4.创建版本库:
a.创建相应的库目录E:\svndemo\repository
b.在当前的MS-DOS下执行:svnadmin create E:\svndemo\repository
c.会在E:\svndemo\repository目录下生成相应文件

5.配置用户和权限:

到E:\svndemo\repository\conf文件夹中找到svnserve.conf文件,将password-db = passwd这一行的注释取消掉,然后在该目录下的passwd文件中加入用户名和密码,格式为 用户名=密码

6.启动svn服务器:

在当前的MS-DOS下执行: svnserve -d -r E:\svndemo\repository

注意不要关闭窗口。

设置为windows服务:

1: sc create svnservice binPath= "E:\svn-win32-1.5.4\bin\svnserve.exe --service -r E:\svndemo" DisplayName= "SvnService" depend= Tcpip start= auto

7.svn地址为:

svn://localhost/

其他pc访问时要将localhost改为ip地址:

svn://192.168.1.101



http://www.cnblogs.com/kay/archive/2009/02/09/1386817.html

读书人网 >CVS SVN

热点推荐