Explain the precautions for automatically starting SVN service when Windows starts up

  
                

This tutorial introduces the Windows startup automatically start SVN service, mainly to explain a few issues that need attention, through the study of this article, I believe you will master the Windows boot automatically start SVN service, let us learn together. First of all Understand what is SVN service?

svn (subversion) is a version management tool that has emerged in recent years and is the successor to cvs. Currently, most open source software uses svn as code version management software. There are two ways to run svn servers: standalone servers and apache. There are pros and cons to each of the two methods, and the user chooses them.

These are all understood, then step into the topic, what are the things to pay attention to when Windows starts the SVN service automatically?

Create the autoRunSVN.bat file, the content is: sc create MySVNServer binpath= "\\"C:\\Program FilesSubversion\\svnserve\\svnserve\\" --service -r H:\\homerepos" displayname= "SVNService" depend= Tcpip start= auto pause

Note:

(1) sc is the service configuration program that comes with Windows. MySVNServer is the name of the service and it seems to be useless.

(2) The parameter binPath indicates the installation path of the svnserve executable file. Since the path ""Program Files" has spaces, the entire path needs to be enclosed in double quotation marks. The double quotes themselves are special characters that need to be transferred, so the two double quotes before and after the path need to be written as \\" .

(3)--service parameter means running as windows service, --r indicates the location of svn repository, service parameter and r parameter are both part of binPath, so together with the path of svnserve.exe It is enclosed in a pair of double quotes, and the pair of double quotes does not need to be escaped.

(4) displayname indicates the name displayed in the windows service list, depend =Tcpip indicates that the svnserve service requires tcpip service, and start=auto indicates that it runs automatically after booting. After installing the service, svnserve will not run automatically until the next boot.

(5) There is no space in front of the equal sign of binPath, there is a space after the equal sign. displayname depend start is also the same as the front of the service ---, not -, and the front of r is -

(6 To uninstall the svn service, execute sc delete svnserve.

(7) From “sc” to “auto” is in the same command sc, must be written on the same line. After the creation is successful, you can type service.msc to view the system service, find the SVNService item, view the properties of the service, and use the interface provided by Windows to operate the SVNService service.

You can also use the command line to start and stop services.

Starting the service: C:\\>net start svnservice The SVNService service is starting. The SVNService service has started successfully.

Stopping the service: C:\\>net stop svnservice The SVNService service is stopping. The SVNService service has stopped successfully.

Delete the created service C:\\>sc delete svn svnservice

SVN is a secure virtual network system that distributes the overall information security functions of the system in different subsystems. So, understand the content of this tutorial can be combined with the characteristics of SVN, etc. I hope you can better grasp this knowledge.

Copyright © Windows knowledge All Rights Reserved