Manually build the SVN server on Linux

Source: Internet
Author: User

SVN Server build Environment: Linux CentOS 7 Installation:

1. Install SVN server

1 Yum Install subversion

2. View version

1 svnserve--version

3. Create a version library

Create a directory First

1 mkdir/var/svn

To create a version library

1 cd/var/svn     // first go to svn directory 23 svnadmin Create/var/ Svn/proname   // create Proname library with SVN administrator 45 cd  proname    //  Enter library   67 ls  // View the files in the library

The file that appears, the library is created successfully.

Subversion Directory Description

DB directory: is the data storage file for all version control.

Hooks directory: The directory where the hook script files are placed.

Locks directory: Used to place subversion to see hard lock Data directory, used to track access to the file repository client.

Format file: is a text file that contains only an integer that represents the version number of the current vault configuration.

Conf directory: This is the repository configuration file (user access to the warehouse account, permissions, etc.).

Go to the Conf directory (the SVN repository profile) CD conf/

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service configuration file

Set Account password VI passwd

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

Set Permissions VI Authz

Add the following code at the end:

[/]

user=rw Description: (r: Read, W: Write)

Modify 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

Note: In the red box, all to shelf write, that is, the front can not have spaces

Start the SVN repository

1  Svnserve-d-R/var/svn/svnrepos

Stop the SVN command

1 killall Svnserve

Use Ps-ef |grep svn to see if the service is turned on.

Testing on client tests on Windows with TORWOISESVN

Torwoisesvn:tortoisesvn.net/downloads.html

On Windows desktop or any folder, right-click-->svn Check out in the blank

The project is then downloaded via the SVN server IP, and the checkout location can be selected

Checkout complete!

Note: The first login needs to enter the account password, that is, you modify the passwd file inside the account password.

Test for possible problems svn:E000113:Unable to connect to a repository at URL ' Svn://ip/repos ' cannot connect to host ' IP ': Because the connecting party does not reply after a period of time

Reason: CentOS 7 is not open to 3690 ports by default

Solution:

Centos7 setting up the firewall:

1. Open 3690 Ports:

1 firewall-cmd–permanent–zone= public –add-port=3690/tcp

2. Restart the firewall:

1 firewall-cmd–reload

Manually build the SVN server on Linux

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.