In Linux, run the following command to start the service:
Svnserve-d-r/svnroot
-D indicates -- daemon, that is, the command execution window is closed and the Service continues to exist. -R indicates -- root, that is, the root directory of the specified database.
In Windows, you can use the same command, but the service disappears after the CMD window is closed. The solution to this problem was to use SVN Windows Service wrapper to package it as a service before version 1.4. After svn1.4, it can be directly supported to start on the server. The method is to use the service controltool that comes with Windows XP and 2000, and the execution file is SC .exe. Enter the following command in the CMD window:
SC create svnservice binpath = "D:/program files/subversion/bin/svnserve.exe -- service-R D:/mysvn" displayname = "svnservice" depend = TCPIP start = auto
Binpath specifies the svnserve path and command. Note that the parameters are -- service, not -- daemon.-D,-I,-T, and other parameters cannot be used. Start = auto indicates that the service is automatically started. Note: there must be no space on the left of the equal sign, but a space on the right.
After execution, the system returns
[SC] createservice success
Indicates that the service is successfully created.
Then execute
Net start svnservice
Start the service. System return
The svnservice is starting.
The svnservice service has been started successfully.
Run
Net stop svnservice
Stop the service. The system returns:
The svnservice service is stopping.
The svnservice service has been stopped successfully.
Run
SC Delete svnservice
Delete a service. You must delete the service before creating the same service.
Source http://blog.csdn.net/ablo_zhou/archive/2007/07/10/1684453.aspx