Linux SVN server to create a repository

Source: Internet
Author: User
Tags win32 tortoisesvn

Linux SVN server to create a repository

1. Installation Services

The installation of SVN was simplified and solved directly with Yum.

Yum install-y Subversion


2. Create a version library

Mkidr/svn/obj

Svnadmin Create/svn/obj

3. Configuration

After using Svnadmin, the Conf directory is generated under the/svn/obj directory, which has three files, Authz, passwd, svnserver.conf

Authz User Rights configuration file

passwd User Password configuration file

SVNSERVER.CONF Master configuration file

Edit svnserver.conf File:

Anon-access = None #关闭匿名访问

auth-access = Write #验证用户可写

password-db = passwd #指向验证用户名密码的数据文件 passwd

Auth-db=authz #指向验证用户的权限配置文件 Authz


Edit passwd file:

[Users]

Admin=admin #用户名在等号前面, password in the back of the corresponding, note: There can be no space in front


Edit Authz File:

[/] #/indicates local repository obj

ADMIN=RW # Admin user has read and write access to obj


4. Start the service

Svnserver-d-r/svn/obj

Now you can upload and download using the Client Tortoisesvn-1.6.15.21042-win32-svn-1.6.16.msi tool


5. Using multiple repository

Mkdir/svn/book

Mkdir/svn/sport

Svnadmin Create/svn/book

Svnadmin Create Svn/sport

The above operation also created two repository book and sport

Copy the three files from the Conf in the obj directory to the book and Sport conf, respectively.

/bin/cp/svn/obj/conf/*/svn/book/conf/

/bin/cp/svn/obj/conf/*/svn/book/conf/

Restart the SVN service:

Kill ' svn id ' first kills the previously started

Svnserver-d-R/SVN

When downloading and uploading with client tools, the name of the folder after the URL is written can be separated, such as:

Svn://ip/obj

Svn://ip/book


Using SVN, Tortoisesvn-1.6.15.21042-win32-svn-1.6.16.msi is strongly recommended under Windows.


This article from the "Shallow faint" blog, reproduced please contact the author!

Linux SVN server to create a repository

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.