2008年4月11日星期五

SVN 作为后台服务的设置

SVN 1.4 的后台服务设置

安装服务sc create subversion_service binpath= "c:\subversion\bin\svnserve.exe --service -r c:\svn_test\repos" displayname= "Subversion Repository" depend= Tcpip
删除服务sc delete subversion_service
不用像1.3那样去借助其他软件了。
如果需要修改版本库的位置,如上面的c:\svn_test\repos 改为 c:\svn_test可以先删除原服务然后再以新的参数来创建服务
修改配置的话,应该可以直接用sc config subversion_service binpath= "c:\subversion\bin\svnserve.exe --service -r c:\svn_test\repos" displayname= "Subversion Repository" depend= Tcpip
具体可以看一下sc的帮助。

引自:http://bbs.iusesvn.com/viewthread.php?tid=358




SVNService(将svn作为windows服务运行的工具)(注意:svn1.4.0以上可以不用这个工具也可以以服务的方式启动,参考http://bbs.iusesvn.com/viewthread.php?tid=358)SVN Service Wrapper for WindowsThis 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 to install the service SVNService -setup 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.
-Magnus Norddahl

引自:http://bbs.iusesvn.com/thread-137-1-1.html

没有评论: