How Linux (CentOS) uses SVN for multiple repository configurations

Source: Internet
Author: User
Tags svn


If there is currently a svnserve process running, the instruction

Killall Svnserve

Specifies the root directory to use when a directory is started by the SVN service, instruction

Cd/data 1 mkdir SVN The final path is:/DATA/SVN

Then create multiple SVN repositories in the/data/svn/directory, instruction

Svnadmin create/data/svn/lesterlee1

Svnadmin Create/data/svn/lesterlee2

The final directory structure should be this:/data/svn/data/svn/lesterlee1/data/svn/lesterlee2 will be/data/svn/lesterlee1/conf/directory Authz, passwd, Svnserve.con Copy to/data/svn/directory, instruction Cd/data/svn/lesterlee1/conf

CP./authz. /.. /

CP./passwd. /.. /

CP./svnserve.conf

At this point the SVN root directory should be structured as:

/data/svn

/data/svn/lesterlee1

/data/svn/lesterlee2

/data/svn/authz

/data/svn/passwd

/data/svn/svnserve.conf

Next, configure svnserve.conf, instructions

Cd/data/svn

VI svnserve.conf

Add the following content:

Anon-access = None

auth-access = Write

Password-db = passwd

Authz-db = Authz

Realm = SVN

After saving, the svnserve.conf configuration is complete,

Next Configure user Information

VI passwd configuration information is as follows:

[Users]

Lesterlee = password after saving,

At this point, the passwd configuration is complete,

Next Configure user permissions

VI Authz

The configuration information is as follows:

[Groups]

#用户组

Grouplesterlee= Lesterlee

#将用户lesterlee加入用户组grouplesterlee中

[/]

Lesterlee= RW

#读写权限

@grouplesterlee = RW

User group Read and write permissions

Finally, start the SVN service and instruct

Svnserve-d-R/DATA/SVN--config-file=/data/svn/svnserve.conf

Note: The next parameter, –config-file=/data/svn/svnserve.conf, is to tell the SVN service to invoke the SVN configuration file under the/DATA/SVN directory to unify the management of the child SVN version created under the/DATA/SVN directory. Use the user information, permissions information in the configuration file to manage each repository.

This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1765742

How Linux (CentOS) uses SVN for multiple repository configurations

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.