-
If you haven’t already, go back to the command window that’s running svnserve. Hit Ctrl+C to stop it.
-
Open a command prompt and type: sc create SVNService binpath= “/”c:/program files/subversion/bin/svnserve.exe/” –service –root c:/svn_repos” displayname= “Subversion Repository” depend= Tcpip start= auto You should see [SC] CreateService SUCCESS if it is successful.
-
You may get an interesting error depending on how you have Vista configured. It may tell you that you [SC] OpenSCManager FAILED 5: Access is denied. This is because Vista (being so smart) downgraded your permissions. So, to run a command window as an Administrator, Opening a command line with Administrator rights is similar. Click on Start, go to Programs -> Accessories, right click on Command Prompt and choose Run as administrator. You’ll be prompted to approve the action, and will then see a window that looks like this
-
-
This will creat the service, and you will need to type: net start svnservice to actually start the service. You should see The SVN Repository service was started successfully.
-
Go back to a command prompt, and type svn ls svn://localhost/. This will list all the files in the root of the repository. If all is well and you’ve got a real Subversion server running now, you should see the single project we created earlier: svn/
Congratulations! You just setup Subversion to run as a service. So, in a following post, we’ll set up access to SVN via TortoiseSVN.
本文详细介绍了如何在Windows Vista系统中将Subversion设置为服务运行的过程,并解决了权限问题,最后验证了服务的成功启动。
341

被折叠的 条评论
为什么被折叠?



