How to build _linux under Linux (CentOS) SVN server

Source: Internet
Author: User
Tags svn

Although it's simple to build SVN on windows, it's not very efficient, of course, compared to Linux. However, it's very cumbersome to build SVN on Linux, so today's article is a step-by-step lesson on how to build svn on CentOS.

The installation steps are as follows:

1. Yum Install Subversion

2, input rpm-ql subversion to view the installation location, as shown below:

We know that SVN generated several binaries in the bin directory.

Enter SVN--help to see how SVN is used, as shown in the following figure.


3. Create SVN version Library directory

Copy Code code as follows:

Mkdir-p/var/svn/svnrepos

4. Create a version library

Copy Code code as follows:

Svnadmin Create/var/svn/svnrepos

After this command is executed, the following files are generated in the/var/svn/svnrepos directory

5, into the Conf directory (the SVN version of the library configuration file)

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service configuration file

6, set the account password

VI passwd

Add users and passwords in the [users] block, format: account = password, such as Dan=dan

7, set permissions

VI Authz

Add the following code at the end:

Copy Code code as follows:

[/]
Dan=rw
W=r

This means that the root of the repository Dan has read and write access to it, and W has only Read permissions.

8. Modify svnserve.conf File

VI svnserve.conf

Open the following several comments:

Anon-access = Read #匿名用户可读

auth-access = Write #授权用户可写

Password-db = passwd #使用哪个文件作为账号文件

Authz-db = Authz #使用哪个文件作为权限文件

Realm =/var/svn/svnrepos # authentication space name, version Library directory

9, start the SVN version of the Library

Svnserve-d-r/var/svn/svnrepos

10. Test on Windows

Create a new test folder, and right click the SVN checkout below (to install TORTOISESVN in advance):

Fill out the SVN address, as shown in the following figure:

Enter the password, as shown in the following figure:

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.