刚把Subversion SVN作为windows系统服务自启动
2010-07-14
阅读数:1838
刚试了下将subversion装入系统服务,用如下命令即可:
e.g.1:
sc create svnserver binPath= "C:\Subversion\bin\svnserve.exe --service -r D:\SVN\repository" DisplayName= "subversion" depend= Tcpip start= auto
|e.g.2:
sc create svnserver binPath= ""C:\Program Files\Subversion\bin\svnserve.exe" --service -r D:\SVN\repository" DisplayName= "subversion" depend= Tcpip start= auto
注意:
1.上述第1块加粗字为SvnServe.exe的路径.需特别注意,若上面的e.g.2,在路径中出现空格则需在路径两边加多一个双引号
2.第2块加粗为SVN的repository路径
3.第3块加粗为服务名
补充:在Windows 2003 Server中第1点需要注意,但在Windows XP和Windows 7中是不需要在路径两边加双引号,即:
sc create svnserver binPath= "C:\Program Files\Subversion\bin\svnserve.exe --service -r D:\SVN\repository" DisplayName= "subversion" depend= Tcpip start= auto
即可
声明: 本文采用
BY-NC-SA 协议进行授权. 转载请注明转自:
刚把Subversion SVN作为windows系统服务自启动
相关评论