First, the installation package
: http://subversion.apache.org/packages.html
Download the WIN32SVN version here (both 32-bit and 64-bit systems are available), double-click the. msi file after the download is complete, and then follow the steps to install it.
Second, the configuration
1. Create a folder on disk to hold the SVN repository, such as E:\svndata (the following steps are based on this directory).
2. Open cmd and execute the following command to create the resource library (this assumes that the project you are developing is named Demo):
Svnadmin Create E:\svndata\demo
After the completion of the implementation can see the E:\svndata directory generated the demo directory, the demo inside the Conf directory has the resource pool configuration information.
3. Open the svnserve.conf file in the E:\svndata\demo\conf directory, find the following three lines, uncomment:
anon-access = Readauth-access = Write
password-db = password
The first line is to allow anonymous users to read data operations, and if you do not want anonymous users to read, you can change read to none.
The second line is to allow authorized users to perform read, write data operations.
The third line specifies that you use the SVN repository to save the user name and password using the passwd file.
4, open the E:\svndata\demo\conf directory under the passwd.conf file, that is, the 3rd step password-db the specified file, add the following content:
DemoUser = DEMOPSD
Set the user name to DemoUser and the password to DEMOPSD.
Basically, the SVN server configuration is completed by the above steps.
5, after the configuration is complete, you can start the SVN service, open cmd, execute the following command to start:
Svnserve-d-R E:\svndata
--------------------Additional content--------------------
If you do not want to start the SVN service every time through a command, you can configure SVN as a system service.
1. Open cmd as an administrator and execute the following command to set SVN as system service:
" D:\Program files\subversion\bin\svnserve.exe--service-r E:\svndata " displayname="Subversion service " depend= Tcpip
It is recommended to restart the system after completion.
2. Press Win+r to open run, and run the following command to open the Service Manager:
Services.msc
A service named "Subcersion Service" can be found, which can be configured for startup mode,
Install configuration on Windows SVN server