Thursday, March 4, 2010

how to install subversion as windows service

Subversion项目已经成为Apache的顶级项目, 看来前途更好了.

在windows下安装SubVersion服务器也非常简单, installer会自动为我们创建一个windows
service,指向一个repository. 但有时候, 我们一个repository不够用, 我们需要多个, 这时候,
可能会用到下面几个命令

情况1(Subversion安装目录不含空格)
sc create svnserve11 displayname= "Subversion Server11" binpath=
"d:\SubversionServer\svnserve.exe --service --listen-port 6666 -r
D:\doc\reps11" depend= Tcpip start= auto
访问该repository的方法是:
svn://localhost:6666

情况2(Subversion安装目录包含空格)
sc create svnserve33 displayname= "Subversion Server33" binpath=
"\"d:\Program Files\CollabNet\Subversion Server\svnserve.exe\"
--service --listen-port 6667 -r D:\doc\reps33" depend= Tcpip start=
auto
访问该repository的方法是:
svn://localhost:6667

下面这个文章包含更多的信息,
http://subversion.open.collab.net/articles/svnserve-service.htm


--
This message was sent via writer.bighugelabs.com.
Please report spam or any violations of the terms of use including
copyright and other violations to support@bighugelabs.com.

No comments: