如何设置“svnserve的--service”在Windows上运行?(How to setup

2019-09-01 09:29发布

当从CMDLINE开始

svnserve.exe -d -r d:\svn\mytools

所有工作的罚款。

然后,我曾试图将其设置为Windows服务运行:

@echo off
set SvnHome=C:\Program Files\TortoiseSVN
set SvnRepository=D:\Svn\mytools
sc delete SvnMyTools
sc create SvnMyTools binPath= "%SvnHome%\bin\svnserve.exe --service -r %SvnRepository%" start=   delayed-auto type= share

服务已安装但无法启动。 所有的时间它报告错误

Error 1083: The executable program that this service is configured to run in does not implement the service.

我曾尝试使用注册表编辑器编辑服务CMDLINE,所以试图添加双引号角落找寻裁判EXE,试图改变CMDLINE参数(用来代替--service -d,同时使用-d--service)等。 有时候,报告的错误是看起来有点不同,但它不反正工作。 :-(

问题是 - 它如何设置,使其作为服务工作在Windows 7 64位系统? 是否有可能呢? 我的意思是 - 如果说“--service” CMDLINE交换机能够在svnserve的工作?

注:svnserve的版本是1.7.9(r1462340)。 TortoiseSVN的组件的其余均为1.7.12.24070。

提前致谢。

Answer 1:

看起来好像没什么问题。 我的服务器安装了这种二元路径:

"C:\Program Files\Subversion\svnserve.exe" --service -r "D:\Repositories" --listen-port "3690"

你尝试安装它的脚本之外?



Answer 2:

我花了一段时间才能弄清楚,选择的答案是不是终点,而是一个补充问题。 这是最后一个行命令执行:

sc create svnserve binpath="\"C:\Program Files\TortoiseSVN\bin\svnserve.exe\" --service -r D:\Repositories" displayname="Subversion Server" depend=Tcpip start=auto


文章来源: How to setup “svnserve --service” to run on Windows?