如何设置"svnserve --service"在Windows上运行? [英] How to setup "svnserve --service" to run on Windows?
问题描述
从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.
我尝试使用regedit编辑服务cmdline,因此尝试向exe添加双引号arround ref,尝试更改cmdline参数(使用 -d 代替-service ,同时使用了 -d 和-service )等等.有时报告的错误看起来有些不同,但是仍然无法正常工作. :-(
问题是-如何设置它以使其在Windows 7 x64上作为服务工作? 有可能吗?我的意思是-如果该"--service" cmdline开关能够在svnserve中工作?注意:svnserve版本为1.7.9(r1462340). TortoiseSVN的其余组件为1.7.12.24070.
谢谢.
对我来说还不错.我的服务器使用以下二进制路径安装:
"C:\Program Files\Subversion\svnserve.exe" --service -r "D:\Repositories" --listen-port "3690"
您是否尝试将其安装在脚本之外?
When starting from cmdline
svnserve.exe -d -r d:\svn\mytools
all working fine.
Then I had tried to set it up to run as Windows service:
@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
service was installed but it is unable to start. All the time it is reporting an error
Error 1083: The executable program that this service is configured to run in does not implement the service.
I have tried to edit service cmdline using regedit, so tried to add double quotes arround ref to exe, tried to change cmdline parameters (used -d instead of --service, used both -d and --service) and so on. Sometimes reported errors are looks a bit different but it does not work anyway. :-(
Question is - how to setup it to make it working as service on Windows 7 x64? Is it possible at all? I mean - if that "--service" cmdline switch is able to work in svnserve?
Note: svnserve version is 1.7.9 (r1462340). Rest of TortoiseSVN components are 1.7.12.24070.
Thanks in advance.
Looks fine to me. My server is installed with this binary path:
"C:\Program Files\Subversion\svnserve.exe" --service -r "D:\Repositories" --listen-port "3690"
Did you try to install it outside of a script?
这篇关于如何设置"svnserve --service"在Windows上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!