简体   繁体   English

如何运行多个SVN服务

[英]How to run multiple SVN services

Having read Setting up Subversion on Windows I am trying to figure out how to run multiple SVN services on one machine. 阅读了在Windows上设置Subversion后,我试图弄清楚如何在一台计算机上运行多个SVN服务。 When I create more then one service using 当我创建多个服务时,使用

sc create svnP1 ... binpath= "svnserve.exe --service -r c:\svn\repositories\project1" 
sc create svnP2 ... binpath= "svnserve.exe --service -r c:\svn\repositories\project2" 

as a template (actual commands truncated) both services listen on the same port and using svn://servername/project2 goes to project1 作为模板(实际命令被截断),两个服务都在同一端口上侦听,并且使用svn:// servername / project2转到project1

So how can I do this or am I going down the wrong track? 那么,我该怎么办?还是走错了路?

I'm not sure why you would need separate services. 我不确定为什么您需要单独的服务。 One service can handle multiple repositories. 一种服务可以处理多个存储库。

I think what you want is: 我认为您想要的是:

sc create svn ... binpath= "svnserve.exe --service -r c:\svn\repositories" 

And then to create project1 and project2 as separate repositories: 然后将project1和project2创建为单独的存储库:


svnadmin create c:\svn\repositories\project1
svnadmin create c:\svn\repositories\project2

This will create two independent repositories that can be configures separately for users and hook scripts. 这将创建两个独立的存储库,可以分别为用户和挂钩脚本进行配置。

A bit tangential, but I just use VisualSVN Server . 有点切线,但我只使用VisualSVN Server It is free, very easy to setup ("next", "next"...), and comes with an MMC snap-in to do all the admin. 它是免费的, 非常容易设置(“ next”,“ next” ...),并且带有MMC管理单元来执行所有管理。 This makes it a doddle to get working on multiple repositories, without having to add extra services each time. 这使得在多个存储库上工作变得轻而易举,而不必每次都添加额外的服务。

(note; they charge for the client, but you can use any SVN client to talk to it; I like TortoiseSVN , but whatever you like...) (请注意;他们为客户端收费,但您可以使用任何 SVN客户端与之交谈;我喜欢TortoiseSVN ,但可以随便...)

Also - under the hood, it uses Apache to expose the data, providing both HTTPS for security, and allowing internet usage over firewall-friendly ports. 另外,它在后台使用Apache公开数据,提供HTTPS来确保安全性,并允许通过防火墙友好的端口使用Internet。

Finally, it even allows the choice of "regular" username/password pairs, or integration with your network (domain etc) credentials. 最后,它甚至允许选择“常规”用户名/密码对,或者与您的网络(域等)凭据集成。 Pretty slick. 很漂亮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM