我试图在 Windows 2003 的 VPS 上设置 SVN。
当我在服务器上运行以下命令时一切正常
svnserve --daemon -r c:\current\svn\twipler
Run Code Online (Sandbox Code Playgroud)
并从 Windows 客户端(带 Tourtoise) svn://twipler.com 工作正常。
但是,如果我从远程桌面关闭命令行/注销,则服务会停止并且客户端会停止工作。
所以我尝试使用以下命令将其设置为服务;
C:\Program Files (x86)\Subversion\bin>sc create SVN binpath="\"c:\Program Files
(x86)\Subversion\bin\svnserve.exe\" --service -r c:\current\svn\twipler" display
name="SVN Service" depends=tcpip
Run Code Online (Sandbox Code Playgroud)
返回 SC 帮助文本;
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...
OPTIONS:
....
Run Code Online (Sandbox Code Playgroud)
但它没有设置服务!我尝试了一些组合等,但没有任何乐趣!
更新
我也在做
svnservice -install --daemon --root c:\current\svn\twipler
Run Code Online (Sandbox Code Playgroud)
大约 10 秒后,弹出一个警告说
无法从命令行或调试器启动服务。必须首先安装 Windows 服务(使用 installutil.exe)并使用 ServerExplorer、Windows 服务管理工具或 NET START 命令启动。
我找不到 installutil 并且迷路了!还有“whoami”是 CT17220\administrator
您的 SC 命令行语法错误:
sc create SVN binpath= "\"c:\Program Files(x86)\Subversion\bin\svnserve.exe\" --service -r c:\current\svn\twipler" displayname= "SVN Service" depend= tcpip
Run Code Online (Sandbox Code Playgroud)
SC 很笨,在“=”符号后需要空格。不要问我为什么。此外,你有“依赖”而不是“依赖”。
| 归档时间: |
|
| 查看次数: |
919 次 |
| 最近记录: |