is not every time the cmd to start the SVN service, when you hit the svnserve-d-R warehouse Path, the black box you can not turn off, psychological is not very uncomfortable? It doesn't matter, we can add the Svnserve command to the Windows service, and set it up as self-booting without having to hit the command to start every day.
First, let's familiarize ourselves with the command format for adding services, taking the SVN installation path in My computer and the path to the SVN repository as an example:
SC Create svn binpath= "D:\SVN\bin\svnserve.exe--service-r E:\repository\svn" displayname= "Svn-service" Start=auto DEP End=tcpip
Where you need to be aware:
There are spaces between 1:binpath= and paths, and diaplayname= and paths.
2:D:\SVN\bin\svnserve.exe, this is the full path of your SVN under Svnserve.exe.
3:E:\REPOSITORY\SVN, this is the full path of your SVN repository.
4:Start=auto, self-priming.
5:Depend=tcpip, dependency is the TCP/IP protocol.
Each service depends more or less on other services, such as randomly selecting a Windows service:
Now that the command format is known, we can add to the service.
Failed? Don't be surprised, permissions are a problem. To add services to the system, you must have administrator privileges.
Run DOS with Administrator privileges
To make sure it has become, we go to the Windows service to find out.
Yes, we have successfully added the service.
Add Svn-service to the Windows service