The build of SVN under Linux

Source: Internet
Author: User

First, the preparation work, depends on the package installation

Yum Install apr*

Yum Install sqlite*

Download SVN package and install

cd/usr/local/src/


wget http://mirror.bit.edu.cn/apache/subversion/subversion-1.7.20.tar.gz


TAR-ZXVF subversion-1.7.20.tar.gz


CD subversion-1.7.20/


./configure--prefix=/usr/local/subversion--without-berkeley-db #prefix指定安装的目录, WITHOUT-BERKELEY-DB indicates that the Berkeley database is not used


Make && make install


Third, configure the system environment

Vim/etc/profile

Add to:

Exprot path= $PATH:/home/svnroot/subversion/bin

Verify that the installation is successful:

/usr/subversion/bin/svnserve--version


Iv. establishment of warehouses

Mkdir-p/home/svnroot/svndata/repos1 #repos1是其中的一个仓库, Svndata is the root directory of all warehouses

1, the establishment of warehouses

Svnadmin CREATE/HOME/SVNROOT/SVNDATA/REPOS1

2. Configure the Warehouse

Cd/home/svnroot/svndata/repos1/conf

3. Modify the svnserve.conf configuration file

VI svnserve.conf

[General]

Anon-access = None

auth-access = Write

Password-db = passwd

Authz-db=authz

4. Directory Control file Authz (or called permission control file)

VI Authz

Default is not configured, to configure the following example

[Groups]

admin = svnadmin

[repos1:/]

@admin = RW

Svnadmin = RW

The configuration permissions control files above are configured in the following format:

[Groups]

< user group name > = < user 1>,< user 2>

[< Repository >:/project/catalog]

@< user Group Name > = < permissions >

< user name > = < permissions >

Where the box number can be written in several ways:

/, which indicates the root directory and the following. The root directory is specified at svnserve startup and we specify/home/svnadmin/svndata. This means that the permissions are set for all repositories.

repos1:/, which indicates that permissions are set on version library 1

Repos2:/occi, which indicates that permissions are set on OCCI projects in version Library 2

REPOS2:/OCCI/AAA, which represents the AAA directory setting permissions on the OCCI project in version Library 2

A permission principal can be a user group, user, or *, and the user group is preceded by @,* to represent all users. Permissions can be W, R, WR, and NULL, and NULL indicates no permissions.

5, Modify the user password file passwd

VI passwd

The default is not configured for any users, you can configure the sample configuration as follows

[Users]

Svnadmin = 123456

Configuration format for user passwords:

[Users]

< user 1> = < password 1>

< user 2> = < password 2>

Note: Here the configuration file, in addition to comments, each line must be top line, or else will be an error.


Five, start

Svnserve-d-r/home/svnadmin/svndata

-d means running in the background,-R means ...

Note: This is/home/svnadmin/svndata, not/home/svnadmin/svndata/repos1. This is the command that SVN takes to make all the repository root directories, not a warehouse. It must be noted here.


VI. Testing

SVN Co SVN://192.168.6.74/REPOS1

Checkout, you will be asked to enter a user name password, only the configured user can verify the



This article is from the "beginner's mind, always" blog, please be sure to keep this source http://gouyc.blog.51cto.com/1594451/1655874

The build of SVN under 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.