How the SVN server is built under Linux (CentOS)

Source: Internet
Author: User

1. Yum Install Subversion

2. Enter RPM-QL subversion to view the installation location, such as:

We know that SVN generated a few binaries in the bin directory.

Enter SVN--help to see how SVN is used, such as.


3. Create SVN repository Directory

Copy the Code code as follows:
mkdir-p/var/svn/svnrepos

4. Create a version library

Copy the Code code as follows:
svnadmin Create/var/svn/svnrepos

After executing this command, the following files are generated under the/var/svn/svnrepos directory

5. Enter the Conf directory (the SVN repository configuration file)

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service configuration file

6. Set Account password

VI passwd

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

7. Set permissions

VI Authz

Add the following code at the end:

Copy the Code code as follows:
[/]
DAN=RW
w=r

It means that the repository's root directory Dan has read and write permissions, and W only reads permissions.

8. Modify the Svnserve.conf file

VI svnserve.conf

Open a few notes below:

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

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

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

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

Realm =/var/svn/svnrepos # certified space name, repository directory

9. Start the SVN repository

Svnserve-d-r/var/svn/svnrepos

10. Testing on Windows

Create a new test folder, and under that folder, right-click the SVN Checkout (to install TORTOISESVN beforehand):

Fill in the SVN address, such as:

Enter a password, such as:

How the SVN server is built under Linux (CentOS)

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.