Build an SVN server on Windows

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.