SVNserve 报错 1053 服务没有响应启动或控制请求 [英] SVNserve giving Error 1053 The service did not respond to the start or control request

查看:52
本文介绍了SVNserve 报错 1053 服务没有响应启动或控制请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 SlikSVN 并且我正在尝试设置 svnserve.SlikSvn 安装在 C:\Program Files\SlikSvn 和 C:\Program Files\SlikSvn\bin 路径中.

I have installed SlikSVN and I'm trying to set up svnserve. SlikSvn is installed in C:\Program Files\SlikSvn and C:\Program Files\SlikSvn\bin is in the path.

服务的注册表项当前是

svnserve.exe --service -r "C:\SVNReposities" DisplayName= "Subversion" depend= Tcpip start= auto

但是,当我尝试启动该服务时,出现以下错误:

However, when I try and start the service I get the following error:

无法在本地计算机上启动 SVNService 服务
错误 1053:服务没有及时响应启动或控制请求.

Could not start SVNService service on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.

如果我将注册表项更改为

If I change the registry entry to"

svnserve.exe --service -r "C:\SVNReposities"

服务正确启动.我无法弄清楚语句的后半部分有什么问题,有没有人知道有什么问题或有任何资源可以帮助我解决这个问题?

The service starts correctly. I can't figure out what is wrong with the second half of the statement, does anyone know what is wrong or have any resources that could help me solve this problem?

推荐答案

我搞定了

解决方案是删除我已经创建的服务,然后按照tortise svn网站上的说明进行操作.

The solutions was to deleted the service I already created, and then followed the following instructions on tortise svn website.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-svnserve.html

我使用以下命令创建了服务
sc create svnserve binpath="\"C:\Program Files\SlikSvn\bin\svnserve.exe\" --service --root C:\SVNReposities" displayname="Subversion"depend= tcpip start= auto

I created the service with the following command
sc create svnserve binpath= "\"C:\Program Files\SlikSvn\bin\svnserve.exe\" --service --root C:\SVNReposities" displayname= "Subversion" depend= tcpip start= auto

结果注册表项是
"C:\Program Files\SlikSvn\bin\svnserve.exe" --service --root C:\SVNReposities

and the resulting registry entry was
"C:\Program Files\SlikSvn\bin\svnserve.exe" --service --root C:\SVNReposities

我相信问题是我在创建服务时没有正确转义双引号.这导致注册条目创建不正确,并且 DisplayName、depend 和 start 留在 ImagePath 注册表条目的末尾.

I believe the problem was I didn't escape the double quotes correctly when creating the service. This caused the register entries to be created incorrectly and the DisplayName, depend and start were left on the end of the ImagePath Registry entry.

最终结果是SVN Serve启动的时候,把整行都作为根目录消耗掉了,找不到导致服务无法启动.

The end result was when SVN Serve started, it consumed the the entire line as the root directory which couldn't be found causing the service to not start.

这篇关于SVNserve 报错 1053 服务没有响应启动或控制请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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