SVN server configuration in Windows

Source: Internet
Author: User
Tags tortoisesvn

 

1. download the file,

Download the latest version of the Subversion Installation File TortoiseSVN-1.5.4.14259-win32-svn-1.5.3.msi

Download the "Subversion Windows Service" package or the installation Setup-Subversion-1.5.3.msi

Download tortoisesvn shell integration Utility

2. Install the Subversion server

Since I downloaded the installation version, installProgramSystem variables will be automatically set after installation. If you download the zip version, you need to manually set the system variables.

You can install the. MSI version directly. Install it to c: \ Program Files \ subversion (which can be designed by yourself)

First, create the svn repository (repository)

Svnadmin create E: \ svnroot \

After repository is created, several files and folders are generated under the directory. The dav directory is the directory provided for Apache and mod_dav_svn to store internal data; the DB directory is all version-controlled data files; the hooks directory stores the directory of the hook script file; locks is used to hold the directory of the data locked by the Subversion file library, and is used to track the client that accesses the file library; the format file is a text file with only one integer in it, indicating the version number configured in the current file library;

3. Configure the svn Server

(This location is where you create the repository F: \ svnroot)

Open the/CONF/directory, open svnserve. conf, and find the following two sentences:

# [General]

# Password-DB = passwd

# Anon-access = none

# Auth-access = write

# At the beginning of each line, where the second line specifies the name of the authentication file, that is, passwd file. Anon-access = none is inaccessible to anonymous users and must have a user name and password. (Note: This is the problem. You must note that the format cannot be blank after the comment is removed)

Open the passwd file and set

# [Users]

# Harry = harryssecret

# Sally = sallyssecret

The format is "username = password". If you can insert a line: Admin = admin888, you can add a user with the username admin and password admin888 to the system.

4. Run the svn Server

Run SVN Service

AvailableNet stop svnserviceStop orNet start svnserviceYou can also start the service in sevices. MSC.

5. access through a client

Format: SVN: \ Server IP

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.