Subversion的安装配置

本文提供了一个详细的Subversion安装教程,包括下载免安装版Subversion、配置环境变量解决中文乱码问题、创建资源库及启动服务等步骤,并介绍了如何将Subversion安装为Windows服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Subversion是很好用的版本控制工具,以前自己也动手安装过,可是时间久了,就忘了,今天就又Google了一下,整理一下Subversion安装过程如下:
1.到这个地址下载svn的免安装版:[url]http://subversion.tigris.org/files/documents/15/41077/svn-win32-1.4.6.zip[/url]
[size=large]到[url=http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100]这里[/url]可以下载1.5的版本:[url]http://subversion.tigris.org/files/documents/15/43244/svn-win32-1.5.1.zip[/url][/size]
2.解压到D:\Subversion\svn-win32-1.4.6,进入bin目录,执行svn help,会出现中文乱码,需要在环境变量添加:[color=red]APR_ICONV_PATH=D:\Subversion\svn-win32-1.4.6\iconv[/color]
3.创建资源库:D:\Subversion\svn-win32-1.4.6\bin>svnadmin create D:\Subversion\svnRepos
4.启动svn:D:\Subversion\svn-win32-1.4.6\bin>svnserve -d -r D:\Subversion\svnRepos
5.访问svn://localhost/

[size=medium][color=blue]将svn安装成Windows的服务:[/color][/size]
SVN Service Wrapper for Windows
This is my Win32 Service wrapper for SVN. Source is included, and its in the public domain. No need to copyright this stuff.

Usage instructions:

SVNService -? to display this list
SVNService -install <svnserve parameters> to install the service
SVNService -setup <svnserve parameters> to change command line parameters for svnserve
SVNService -remove to remove the service
SVNService -debug to run as a console app for debugging

将svnservice.exe放在subversion的bin目录下

Example:
比如,你的所有项目都在c:\svnrepo下,你可以如下
安装时用 SVNService -install -d -r c:\svnrepo
更改时用 SVNService -setup -d -r c:\otherplace\svnrepo
如果访问其中的一个项目c:\svnrepo\project1,可以指定路径

svn://localhost/project1 (注:作为url时用/)

第一次安装完后要到服务中手动启动它,
或者到服务中将它设为自动启动,让每次机器启动时自动启动这个服务。

IMPORTANT:

Make sure you place SVNService.exe in the same directory as svnserve.exe
一定要将SVNService.exe放在svnserve.exe相同的目录
Special thanks go to Craig Link at Microsoft for creating the initial service.c.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值