svn -- register as a service

Register the command as a Windows service:

1. Check if this service is available:

win+r--->services.msc (start service list)

2. Whether there is an svn service, if so, delete it:

sc delete svn(service name)

3. Add service: the format is as follows:

sc create svn binpath= "D:\Program Files\Subversion\bin\svnserve.exe --service -r F:\repository\svn" displayname= "SVN-Service" start= auto depend= Tcpip

4. Start or stop the service:

net start svn(或) net stop svn

 

Notice:

A space must be added after each = sign, and no space in front of the = sign

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326592424&siteId=291194637