Centos installs SVN and configures multiple repository

Source: Internet
Author: User

#安装SVN服务器

Yum Install Subversion

#在home下创建svn根目录

Mkdir/home/svnroot

Create Project1 under #在/home/svnroot, Project 2, Project3 three project folders, three folders to hold the SVN repository for different projects.
Create the Codeauth folder #在/home/svnroot, which will save the passwd and Authz files.
Mkdir/home/svnroot/codeauth

#创建项目

Cd/home/svnroot

Svnadmin Create Project1

Svnadmin Create Project2

Svnadmin Create Project3

Three project repositories were created, passwd, Authz, and svnserve.conf files exist in repository directory conf

passwd– user name and password for storing this SVN repository

authz– Store Access authorization information for this SVN vault

The svnserve.conf file is the global access control information that holds this SVN repository

#将passwd, Authz files are copied to/home/svnroot/codeauth, and the passwd and Authz files in the Conf directory under three items are deleted.

#修改 the svnserve.conf file in the Conf directory in three projects, you can modify the svnserve.conf file under one project and overwrite it with the svnserve.conf file under the other two projects.

svnserve.conf revision changed to

[general]anon-access = noneauth-access = writepassword-db = /home/svnroot/CodeAuth/passwdauthz-db = /home/svnroot/CodeAuth/authz

The passwd file under the #修改/home/svnroot/codeauth is

[Users]
admin=admin001

The Authz file under the #修改/home/svnroot/codeauth is

[groups< Span class= "pun" >]admin_group=admin[< Span class= "Typ" >project1:/] @admin_group =rw*=[ Project2:/] @admin_group = rw*=[project3 :/]  @admin_group =rw*=   

#说明:
"*" means everyone, and "=" is followed by a permission.
There are 3 cases after "="
Empty: Indicates no permissions
R: Indicates read-only permissions
RW: Read and Write permission

Such as:
* =
User1 = R
User2 = RW
The combination of these three lines means User1 this user has read-only access, user2 the user has read and write privileges, and other people do not have any permissions.

#启动SVN服务

Svnserve-d-r/home/svnroot

#关闭SVN服务
Killall Svnserve

#客户端软件TortoiseSVN浏览方法:

Open Repository Browser input: Svn://ip-addr/project1

HTTP://JU.OUTOFMEMORY.CN/ENTRY/92350 (EXT)

Centos installs SVN and configures multiple repository

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.