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.创建版本库:
1: svnadmin create E:/svndemo/repository
5.配置用户和权限:
到E:/svndemo/repository/conf文件夹中找到svnserve.conf文件,将password-db = passwd这一行的注释取消掉,然后在该目录下的passwd文件中加入用户名和密码,格式为 用户名=密码
6.启动svn服务器:
1: 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