---
title: "svn win安装配置"
author: "hao0610"
date: "2013-04-23T11:37:03Z"
tags: []
categories: ["开源软件"]
slug: "svn-win"
draft: false
lastmod: "2013-04-23T11:37:03Z"
id: 1851895
url: "https://hao0610.iteye.com/blog/1851895"
---

1. 下载所需要的软件
Subversion: <http://sourceforge.net/projects/win32svn>
TortoiseSVN: <http://tortoisesvn.tigris.org>

2. 安装软件
将Subversion安装到d:\Subversion下, 安装Subversion成功后, 进入命令行输入 svn --version 查看运行效果.
安装TortoiseSVN客户端, 这是一个非常方便, 易于使用的客户端.

3. 创建Repository
创建Repository，也就是版本库.
进行命令行, 输入cd d:\回车, 然后输入svnadmin create d:\SvnRoot. 这样就在d:\SvnRoot创建了版本库，SVN在该目录下创建了许多文件

4. 配置用户和权限
Subversion使用文件来配置用户以及权限，在d:\SvnRoot\conf目录下打开svnserve.conf和passwd文件, 删除下面行前面的#号注释
svnserve.conf: (注意, anon, auth, password前面不能有空格)

```text

anon-access = read
auth-access = write
password-db = passwd

```

passwd 配置用户名和密码:

```text

admin = admin123

```


5. 配置svnserver作为系统服务

```text

sc create svnserve binpath= "d:\Subversion\bin\svnserve.exe --service -r d:\SvnRoot" start= auto displayname= "Subversion Server" depend= Tcpip

```