我试图在VPS,Windows 2003上设置SVN。
当我在服务器上运行时,一切正常
svnserve --daemon -rc:\current\svn\twipler
并从Windows客户端(与tourtoise)svn://twipler.com工作正常。
但是,如果从远程桌面closures命令行/注销,服务停止,客户端停止工作。
所以我尝试使用以下命令将其设置为服务:
C:\Program Files (x86)\Subversion\bin>sc create SVN binpath="\"c:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service -rc:\current\svn\twipler" display name="SVN Service" depends=tcpip
哪个返回SC帮助文本;
DESCRIPTION: Creates a service entry in the registry and Service Database. USAGE: sc <server> create [service name] [binPath= ] <option1> <option2>... OPTIONS: ....
但它不设置服务! 我已经尝试了几个组合等,但没有喜悦!
更新
我也在做
svnservice -install --daemon --root c:\current\svn\twipler
在10秒左右后,popup一个警告声
无法从命令行或debugging器启动服务。 首先必须安装Windows服务(使用installutil.exe),并使用ServerExplorer,Windows服务pipe理工具或NET START命令启动。
我无法findinstallutil,我迷路了! 另外“whoami”是CT17220 \pipe理员
你的SC命令行语法是错误的:
sc create SVN binpath= "\"c:\Program Files(x86)\Subversion\bin\svnserve.exe\" --service -rc:\current\svn\twipler" displayname= "SVN Service" depend= tcpip
SC是愚蠢的,在“=”符号之后需要空格。 不要问我为什么。 另外,你有“依赖”而不是“依赖”。
你需要做的
svnservice -install --daemon --root "C:\Documents and Settings\Subversion Repository"
在某一点。
我遵循了这些方向,并没有太多的麻烦。