Install configuration svn in the correct Windows

Source: Internet
Author: User
Tags svn
Configuring the SVN server under Windows
1. Download the file
Download the latest version subversion, I choose Svn-1.4.5-setup.exe here
Download the Subversion Windows Service Package
Download TortoiseSVN Shell Integration Utility
2. Install Subversion server
Since I downloaded the setup.exe version, the Setup program automatically sets the system variables after installation. If you download a zip version, you need to set the system variables manually.
Setup.exe version can be installed directly. Install to D:/program files/subversion
First create the SVN repository (repository)
Svnadmin Create f:/svn/
Repository created after the creation of a number of files and folders in the directory, the DAV directory is provided to Apache and MOD_DAV_SVN to use the directory, so that they store internal data; The DB directory is all version-controlled data files The directory where the Hooks directory places the hook script file, the directory where the locks is used to lock the data in the Subversion repository, and the client that accesses the repository; The format file is a text file containing only an integer that represents the version number of the current file library configuration;
3. Configure SVN server
(This position is where you build the repository f:/svn)
Open the/conf/directory and open svnserve.conf to find two sentences:
# [General]
# password-db = passwd
# anon-access = None
# auth-access = Write

Go to the # at the beginning of each line, where the second row is the filename of the specified authentication, that is, the passwd file. anon-access = none is inaccessible to anonymous users and must have a username and password. (Note: The problem is here, be sure to note that the format to remove comments after the below can not be empty)
Also open the passwd file to
# [Users]
# Harry = Harryssecret
# sally = Sallyssecret
Format is "username = password", if you can insert one row: admin = admin888, that is to add a user named Admin for the system, password is admin888 user

4. Running the SVN server
Running the SVN service
Executing at the command line
Svnserve--daemon--root F:/SVN
Service startup,--daemon can be abbreviated to-d,--root-R, you can create a batch file and place it in the Windows Startup group to run the SVN service (note: This is a temporarily opened service, the command cannot close the window after execution)
The background service can be used to set up automatic boot execution.
D:/program FILES/SUBVERSION/BIN>SC Create Svnservice binpath= "D:/program files/
Subversion/bin/svnserve.exe--service-r F:/SVN "
You can start the service with net Svnservice stop or start, or you can start it in Sevices.msc.
5, with the client access
Format: svn://Server IP
Because SVN has three ways to implement it, there are three different access formats.

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.