1. Install Subversion.
2. Create repository, such as repository built in C: C:/localrepository.
3. Under CMD, enter the Subverion under the Bin folder in the installation directory, input command:svnadmin createC:\localrepository
4. If the third step succeeds, the Localrepository will generate a folder.
5. Set up a service for SVN, let SVN become a service in the background of the machine execution, as long as the machine boot will be executed SVN service: SC create SVNService1 binpath= "C:/Program Files (x86)/subversion/bin/ Svnserve.exe--service-r c:/localrepository "displayname=" SVNService1 "depend= Tcpip start= Auto
6. Start the service net start SVNService1. You can also go to the management---services, to manually start.
7. Configure Users and permissions:
(1) Modify the svnserve.conf, and in the e:\svn\repos1\conf directory, open the svnserve.conf with a text editor:
Will:
# anon-access = Read
# auth-access = Write
# password-db = passwd
Switch
Anon-access = Read
auth-access = Write
Password-db = passwd
NOTES:
There are no spaces in front of the anon-access column.
Anon-access = read indicates that access is not logged through the user name password only, and if you change to none then no user name password cannot be accessed
Auth-access = Write indicates written permission to log in with the user name password (the Read permission is also available)
Password-db = passwd indicates that a user can be added to the passwd file by means of a user name = password
(2) Modify the passwd file of the same directory, add the user account:
Will:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Add Account:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
admin = Admin
Add an admin account, password is admin.
Build an SVN server on Windows