---
title: "svn服务器端配置"
author: "holoblog"
date: "2011-11-02T14:49:00Z"
tags: []
slug: "svn"
draft: false
lastmod: "2011-11-09T12:05:31Z"
id: 1245550
url: "https://holoblog.iteye.com/blog/1245550"
---

SVN1.6服务端和客户端安装配置步骤

1、 软件下载  
下载SVN1.6服务器程序。

客户端\[TortoiseSVN-1.6.9.19725-win32-svn-1.6.12.msi]

[http://www.svnclub.com/index.php?q=node/74](http://www.svnclub.com/index.php?q=node%2F74) 或者[http://dl.dbank.com/c0a6uapex8](http://dl.dbank.com/c0a6uapex8)

服务器\[Setup-Subversion-1.6.9.msi]

[http://www.svnclub.com/index.php?q=node/73](http://www.svnclub.com/index.php?q=node%2F73) 或者[http://dl.dbank.com/c0scm873jk](http://dl.dbank.com/c0scm873jk)

2、服务器和客户端安装服务器安装，直接运行安装程序，根据提示安装即可。

3、建立SVN1.6版本库（Repository）  
在目录D:\\svn\\repository下"右键-&gt;TortoiseSVN-&gt;Createrepositoryhere"，然后可以选择版本库模式，这里使用默认fsfs方式即可，然后就创建了一系列目录和文件。

4、配置SVN1.6用户和权限  
打开D:\\svn\\repository\\svnserve.conf文件，最后你设置\[general]小节中行前没有#号的内容为:  
anon-access=none  
auth-access=write  
password-db=passwd

打开同目录的passwd文件来设置帐户:  
同样,设置\[users]小节中行前没有#号的内容,例如:  
admin=123456

5:创建服务器---cmd输入

sc create svnservice binPath= "C:\\Program Files\\Subversion\\bin\\svnserve.exe --service -r D:\\svn\\repository" DisplayName= "subversion" depend= Tcpip start= auto

启动服务器

net start subversion

6、导入项目

目录上右击,选择TortoiseSVN,&gt;&gt;&gt;"Import...",设置"文件库url"为svn://localhost点确定后就会提示文件正在导入.其它机器如果要访问svn服务器IP地址,例如svn://192.168.1.1

7、导出项目

例如d:\\project&gt;&gt;&gt; 选择"SVN取出...",设置"文件库url"为svn://192.168.1.1服务器的IP地址,设置的用户admin密码123456

8:问题：

错误 2: 系统找不到指定或错误 3: 系统找不到指定

解决办法：

到注册表找到HKEY\_LOCAL\_MACHINE/SYSTEM/CONTROLSET001/Services/svnservice ,找到这个后选中,有个ImagePath, 把它的数据数值改成正确的可执行文件路径。

命令：

创建服务：

sc create svnservice binPath= "E:\\IDE\\Subversion\\bin\\svnserve.exe --service -r E:\\svn\\repository" DisplayName= "subversion" depend= Tcpip start= auto

启动服务：

net start subversion