CentOS 7 Installing the SVN server tutorial

Source: Internet
Author: User

Setting up SVN on Windows is simple, but not efficient, of course, compared to Linux. However, it is very cumbersome to build SVN on Linux, and this article will teach you step-by-step how to build svn on CentOS.

SOURCE directory:/home/user/project

Project Name: Project

Engineering Catalog:/source/svn/project

Access Address: Svn://ip/project

First, install SVN

Yum Install Subversion

Two, SVN server configuration

1. Create SVN root directory

Mkdir/source/svn

2. Add Project

Svnadmin Create/source/svn/project

3. Import Project initial document (May province)

SVN import/home/user/project/file:///source/svn/project-m "Init project"

4. Configure the project user

Access to the project configuration directory:

Cd/source/svn/project/conf

Altogether three files below: Authz passwd svnserve.conf

passwd: Inside save user information, the basic format is: User = passwd

Authz: Inside saves the user's grouping information, as well as each group's access rights

Svnserve.conf: Inside Save the basic configuration of the server (described below)

The configuration for this example is as follows:

4.1 passwd inside Add user

[Users]

PM = pm123

4.2 Authz Configure user permissions

Copy Code

[GrouPS]

#添加一个分组 (in practice, you can add multiple, each group can have multiple users, separated)

Pm_g = PM

# Permission configuration for this project

[project:/]

# pm_g group configuration Read and Write permissions (can actually increase read-only groupings)

@pm_g = RW

4.3 svnserve.conf configuration (can be default)

# Anonymous user rights (none: Deny, write: Read/write, read: Read only)

Anon-access = None

# Authentication User Access

auth-access = Write

# User Information profile (can also be an absolute path)

Password-db = passwd

# permission Profile

Authz-db =/source/svn/project/conf/authz

Third, start the SVN server

Svnserve-d-R/SOURCE/SVN

Four, pulls replaces the code

SVN Co svn://ip/project

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.