Use of SLIKSVN under Windows

Source: Internet
Author: User
Tags tortoisesvn

I believe that everyone should be familiar with svn , I believe most people have used, but not everyone has to configure the SVN server. Here are my steps to configure the SVN server, as well as some of the problems encountered during the configuration process, in this record, I hope to help you.

Installation

Double-click Run Slik-subversion-1.6.12-win32.msi in the "companion installer" directory to customize the installation directory. Default installed directory: C:\Program FILES\SLIKSVN;

Double-click Run Tortoisesvn-1.6.5.16974-win32-svn-1.6.5.msi in the "Companion installer" directory, which is a GUI management tool that integrates SVN into Windowsshell and is recommended for use.

Double-click Run the "Companion installer" directory in Languagepack_1.6.5.16974-win32-zh_cn.msi, which is TortoiseSVN's Chinese package.

Create a repository that holds all subversion projects:

First, create a directory manually, such as C:\svnDB\DB1

Then, create the repository:

The first way: Run Svnadmin create C:\svnDB\DB1 in the DOS command line

Second way: In the DB1 directory, right-click and select [totoisesvn]->[Create repository here ...] To create,

When the above work is complete, you can see the following in the Yxv3 directory:

4 directories, two files.

which

Conf directory storage configuration information;

The DB directory is all version controlled data files;

Hooks directory where the hook script file is placed;

Locks is used to place the Subversion file Vault lock Data directory, used to track access to the file repository of the client;

The format file is a text file that contains only an integer that represents the version number of the current vault configuration;

Configuration

Implementation of subserver with self-service platform

Open the/conf/directory, open the svnserve.conf to find the following line, and remove the # from the beginning of each line: ( pay special attention to not leaving the front of the row blank )

[General]

anon-access= None #保证只有认证用户可以访问, that is, turn off anonymous access

Auth-access= Write #通过认证的使用权限

password-db= passwd #指定了用户密码文件

Open the/conf/directory, open the passwd file, add users, one line, storage format "User name = password"

[Users]

# define User Information

Lvgang = Lvgang

Luotong =luotong

Create and start SVN services

Open a DOS window, use SC to create a Windows service, point the current directory to the bin directory of Subversion, and enter:

SC createsvnservice binpath= "C:\Program files\sliksvn\bin\svnserve.exe--service-r C:\svnDB" Displayname= "SVNService "Depend= Tcpip Start=auto (Special note = There are spaces behind)

Import a project version library

Once the SVN service (command line or Windows service) is determined to run,

In the directory where you need to import the repository, right-click to select [tortoisesvn]-> [import ...], enter the directory address of the repository in the URL box of the popup window (for example, SVN://127.0.0.1/DB1, "DB1" is the repository)

Click "OK" to perform the import, display the following dialog box, enter the user name and password to confirm

The data is all added to the SVN repository directory tree.

Use of SLIKSVN under Windows

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.