Linux Installation Deploy SVN server

Source: Internet
Author: User

SVN version management tool.

The SVN server operates in 2 ways: stand-alone servers and operate with Apache. Both ways have pros and cons, users can choose their own.

SVN stores version data in 2 ways: BDB (a Transaction-safe table type) and FSFS (a storage system that does not require a database). Because the BDB mode is likely to lock the data when the server is interrupted, it is safer to fsfs the way.

1. Environment

# Cat/etc/redhat-release

CentOS Release 6.3 (Final)

# getconf Long_bit

64

2. Install SVN

#yum-y Install Subversion

3. Configure SVN

3.1 Build version Coogan directory

# mkdir-p/DATA/SVN

3.2 Creating the SVN repository

# svnadmin Create/data/svn/test

2. Create a repository and specify a data storage mode of FSFS

#./svnadmin Create--fs-type fsfs/www/svn/repository/

3.3 Modifying a repository configuration file

# vim/data/svn/test/conf/svnserver.conf

 

each parameter function is described in the comments in the configuration file,  here:
[general]
anon-access = none #  makes unauthorized users inaccessible
auth-access = write #  enable authorized users to have write permission
password-db =  /opt/svndata/repos/conf/pwd.conf #  indicates the password file path
authz-db =  /opt/svndata/repos/conf/authz.conf #  access Control file
realm =  /opt/svndata/repos #  authentication namespace, Subversion is displayed in the authentication prompt and is used as a keyword for credential caching.

4. Configure the user

# CAT/DATA/SVN/TEST/CONF/PASSWD | Grep-v ' ^# '

[Users]

user = password

5. Start SVN

# svnserver-d-R/DATA/SVN

6. Firewall on port 3690;


This article is from the "System operation and maintenance website Development" blog, please be sure to keep this source http://cgc888.blog.51cto.com/3989433/1688723

Linux Installation Deploy SVN server

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.