Linux Build SVN server

Source: Internet
Author: User
Tags svn

Linux build svn Server

This is a Linux distribution:CentOS 7.2

1. Install svn

# Yum Install Subversion

1. create a new directory to store svn files

# MKDIR/SVN

2. Create a new resource warehouse

# Svnadmincreate/svn/project

# Ls-l/svn/project Total 24

Drwxr-xr-x 2 root root 4096 June 09:10 conf

Drwxr-sr-x 6 root root 4096 June 09:10 db

-r--r--r--1 root root 2Jun 09:10 format

Drwxr-xr-x 2 root root 4096 June 09:10 Hooks

Drwxr-xr-x 2 root root 4096 June 09:10 locks

-rw-r--r--1 root root 229Jun 09:10 README.txt

Application Description:

      • Hooks: directory where hook script files are placed

      • Locks: directory of db_logs lock files that place Subversion db lock files

      • Format: is a file that only has an integer that represents the current vault configuration version number

      • Conf: The configuration file to place the warehouse (Access account, permissions, etc.)

      • DB: Version data store directory

            version database real storage format, with fsfs and Bdb two

          • db/revprops: record version properties

          • db/revs: version database stores the real directory

          • db/uuid: store version database unique identification number

          • < Span style= "font-family: ' Microsoft Jas Black ', ' Microsoft Yahei ';" >db/txn-current: record the current thing

3. Configure The SVN service configuration file conf/svnserver.conf

# Vim Conf/svnserver.conf

[general]anon-access = noneauth-access = writepassword-db =/svn/project/conf/passwdauthz-db =/svn/project/conf/ Authzrealm = My Test Repository #这是个提示信息

4. Add Access user and password

# Vim CONF/PASSWD

[Users]test1 = 123456test2 = 123456

5. Authorization for new users

# Vim Conf/authz

[groups]admin = Test1user = test2 [/] @admin = Rw@user = R *=

/indicates that permissions are set on all subdirectory scopes under the root directory (that is , the/svn/project directory);

[/test] indicates that permissions are set on the test item in the repository ;

*= means that except for the set of user groups, all other users are empty permissions


Note: Changes to the rights profile take effect immediately without restarting

6. Start the service

The CentOS 7.2 start-up service is placed in /usr/lib/systemd/system and the default warehouse is /VAR/SVN

There is a need to /etc/sysconfig/svnserve in the /VAR/SVN Change into /svn/project

Start the service : # systemctl start Svnserve

2. using client connections

Open Tortoisesvnrepository Browser Tools

in the Enter inthe URL: svn://192.168.3.23 enter the user name and password to login


Linux Build SVN server

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.