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.
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.