如何设置“svnserve --service"在 Windows 上运行? [英] How to setup "svnserve --service" to run on Windows?

查看:11
本文介绍了如何设置“svnserve --service"在 Windows 上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当从 cmdline 启动时

When starting from cmdline

svnserve.exe -d -r d:svnmytools

一切正常.

然后我尝试将其设置为作为 Windows 服务运行:

Then I had tried to set it up to run as Windows service:

@echo off
set SvnHome=C:Program FilesTortoiseSVN
set SvnRepository=D:Svnmytools
sc delete SvnMyTools
sc create SvnMyTools binPath= "%SvnHome%insvnserve.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.

我曾尝试使用 regedit 编辑服务 cmdline,因此尝试在 exe 的 ref 周围添加双引号,尝试更改 cmdline 参数(使用 -d 而不是 --service,同时使用 -d--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. :-(

问题是 - 如何设置它以使其在 Windows 7 x64 上作为服务运行?有可能吗?我的意思是 - 如果那个--service"cmdline 开关能够在 svnserve 中工作?

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?

注意:svnserve 版本是 1.7.9 (r1462340).TortoiseSVN 的其余组件是 1.7.12.24070.

Note: svnserve version is 1.7.9 (r1462340). Rest of TortoiseSVN components are 1.7.12.24070.

提前致谢.

推荐答案

我觉得不错.我的服务器是用这个二进制路径安装的:

Looks fine to me. My server is installed with this binary path:

"C:Program FilesSubversionsvnserve.exe" --service -r "D:Repositories" --listen-port "3690"

您是否尝试在脚本之外安装它?

Did you try to install it outside of a script?

这篇关于如何设置“svnserve --service"在 Windows 上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆