在终端提示符下,只需运行以下命令即可启动服务,注意不要关闭窗口,否则服务会停止。
svnserve -d -r "版本库目录"
也可以执行下面的命令,注册系统服务。
sc create "服务名" binPath= "\"当前环境中 svnserve.exe 的执行路径\" --service --root \"版本库目录\"" displayName= "服务名" depend= TCPIP start= auto