Blog Logo
  • Home
  • SACC2013
  • Categories
  • Tags
  • About
  • Feed

把 svnserve 注册成 windows service 的正确命令

by Ruanjf — on windows 26 May 2011

Subversion的文档里的那个命令是错误的,错误的地方一个是 binpath 应该是 binPath, displayname 也应该是 DisplayName:

sc create svn binPath= "\"C:\Program Files\Subversion\bin\svnserve.exe\" --service -r D:\SVN" DisplayName= "Subversion Server" depend= Tcpip start= auto

请注意,

  • 如果你的svnserve的path中有空格,那么用 \" 是必须的
  • --service 也是必须的
  • -r D:\SVN 定义的是你的repository的根目录,也就是包含了conf、dav、hooks等目录的那个目录

其他的命令详见 sc --help

Ruanjf Author

Ruanjf

ruanjiefeng@gmail.com

是我,这就是我

Comments

comments powered by Disqus
All content copyright Ruanjf © 2020 • All rights reserved.
Proudly published with Jekyll on Tuesday, 05 May 2020 at 05:34 PM UTC