`
liyanboss
  • 浏览: 140160 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

Subversion的安装配置

阅读更多
Subversion是很好用的版本控制工具,以前自己也动手安装过,可是时间久了,就忘了,今天就又Google了一下,整理一下Subversion安装过程如下:
1.到这个地址下载svn的免安装版:http://subversion.tigris.org/files/documents/15/41077/svn-win32-1.4.6.zip
这里可以下载1.5的版本:http://subversion.tigris.org/files/documents/15/43244/svn-win32-1.5.1.zip
2.解压到D:\Subversion\svn-win32-1.4.6,进入bin目录,执行svn help,会出现中文乱码,需要在环境变量添加:APR_ICONV_PATH=D:\Subversion\svn-win32-1.4.6\iconv
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/

将svn安装成Windows的服务:
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.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics