LINUX-SVN Server

Source: Internet
Author: User

    1. Environment: centos6.5

    2. Installation

      CentOS 6.5 is installed by default with SVN server, which is used directly here. If not, use the Yum-y install Subversion installation

    3. To create a version library

      3.1 Creating the SVN root directory

      MKDIR/MNT/SVN #/mnt is my data disk.

      3.2 Creating a Project Repository

      Cd/mnt/svn

Svnadmin Create Test #test是版本库名字, can be named according to your preference

4. Configuration

The configuration file is stored in the test/conf directory:

SVNSERVE.CONF:SVN Service configuration file

Authz: Privilege profile

passwd: User name password configuration file

You can see that each repository has its own user and permission profiles. When there are multiple repositories at the same time, it is common to create Authz and passwd files in the SVN directory for all repositories.

4.1 Copy the AUTHZ,PASSWD to the SVN directory first

CP AUTHZ/MNT/SVN

CP AUTHZ/MNT/SVN

4.2 Configuring Svnserve.conf

Modify the following several places

Anon-access = None

auth-access = Write

Password-db =.. /.. /passwd

Authz-db =.. /.. /authz

4.3 Configuring passwd

vim/mnt/svn/passwd

Add users under [users] in the following format

User1 = Passwd1

User2 = Passwd2

4.4 Configuring Authz

Vim/mnt/svn/authz

Create a user group under [groups]

team1 = User1,user2

Set permissions under [/], specify that all libraries are read-only, root can read and write, and this permission is valid for all repositories under the root.

* = R

Root = RW

If you need permission settings for a repository, you can continue to add

[test:/]

@team1 = RW

* = R #其它用户只读

5. Start SVN

Svnserve-d-R/MNT/SVN

6. The client installs the TORTOISESVN, opens the Tortoisesvn-repo-browser, enters the SVN address svn://ip/test, enters the user name password, then can create the trunks,branches,tags.

LINUX-SVN Server

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.