操作系统
Windows XP SP2
SVN相关下载
(见后附相关资源)
服务器安装
运行“svn-1.4.5-setup.exe”,或直接解压“svn-win32-1.4.5.zip”
版本库创建
命令如下,其中C:/svnroot/MyRepo为要创建的版本库放置的目录位置
svnadmin.exe create C:/svnroot/MyRepo
版本库配置
服务器配置文件“conf/svnserve.conf”
[general]
## 密码数据文件名
password-db = passwd
## 匿名用户可读
# anon-access = read
## 认证用户可写
# auth-access = write
密码数据文件“conf/passwd”
[users]
## 用户名 = 密码
harry = harryssecret
服务器启动运行
1.直接运行执行如下命令,默认以服务器根目录为版本库根目录,访问时需要版本库文件夹的完整路径
svnserve.exe -d
2.指定版本库根目录
svnserve.exe -d -r C:/svnroot
3.将SVN作为Window服务运行(Subversion1.4以上版本)
sc.exe create SVNService binpath= "C:/svn-win32-1.4.5/bin/svnserve.exe --service -r C:/svnroot" depend= tcpip
注意:
等号前无空格后有空格。
应使用参数“--service”而不是“-d”,参数前面的横线不是一个是两个。
binpath内套的路径如果包含空格,也需要使用双引号,此时需要使用转义符表示内部的引号(/")。
4.使用“SVNService.exe”将SVN作为Window服务运行(Subversion1.4之前版本也可使用)
SVNService.exe -install -d -r C:/svnroot
注意:
用法与使用“svnserve.exe”类似,区别仅仅是把“svnserve.exe”换成“SVNService.exe -install”。
把“-install”替换为“-setup”和“-remove”可修改和删除服务。
客户端安装与运行
安装运行“TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi”
安装语言包运行“LanguagePack-1.4.5.10425-win32-zh_CN.exe”
Eclipse插件Subclipse安装
Eclipse插件在线更新地址:
For Eclipse 3.0/3.1 http://subclipse.tigris.org/update_1.0.x
For Eclipse 3.2+ http://subclipse.tigris.org/update_1.2.x
相关资源
Subversion http://subversion.tigris.org/
TortoiseSVN http://tortoisesvn.net/downloads http://tortoisesvn.tigris.org/
Svn1ClickSetup http://svn1clicksetup.tigris.org/
Subclipse http://subclipse.tigris.org/
Subversion中文站 http://www.subversion.org.cn/
本文详述了在Windows XP SP2上安装SVN服务器和客户端的步骤,包括使用svnadmin创建版本库,配置服务器文件,通过svnserve.exe启动服务,以及安装TortoiseSVN和Eclipse插件Subclipse进行版本控制。
452





