SVN deployment document under CentOS5.5

Source: Internet
Author: User

 

Brief description:

SVN is a secure virtual network system that distributes the overall information security functions of the system evenly and reasonably in different subsystems,

The function of each subsystem is maximized. subsystems complement each other. The overall performance of the system is greater than the sum of the functions of each subsystem. The "Barrel Principle" problem is solved by balancing and complementing each other.

  

Environment:

CentOS release 5.5 (Final) x64

 

IP: 10.0.0.110

 

# Installation and deployment

 

Check whether earlier versions of SVN are installed.

Rpm-qa subversion

[Root @ Svn tools #] rpm-qa subversion

Subversion-1.4.2-4.el5_3.1

Subversion-1.4.2-4.el5_3.1 subversion-1.4.2-4

 

# Uninstall

Yum remove subversion

 

Install svn

Yum install subversion-y

 

Mkdir-p/elain/data/{svndata, svnpasswd}

 

Start the SVN root directory of the specified service of the SVN Service

Svnserve-d-r/elain/data/svndata/-- pid-file =/elain/data/svndata/svn. pid

 

View SVN processes:

[Root @ Svn tools #] ps-ef | grep svn | grep-v grep

Root 27543 1 0? At 00:00:00 svnserve-d-r/elain/data/svndata/-- pid-file =/elain/data/svndata/svn. pid

 

Check SVN Port:

[Root @ Svn tools #] netstat-ln | grep 3690

Tcp 0 0: 3690: * LISTEN

 

Build a version Library

Create a new Subversion project trunk

Svnadmin create/elain/data/svndata/trunk

 

Allow elain read/write access

 

Cd/elain/data/svndata/trunk/conf/

Vi svnserve. conf Modification

========================================================== ==========

12 anon-access = none

13 auth-access = write

18 password-db =/elain/data/svnpasswd/passwd

25 authz-db =/elain/data/svnpasswd/authz

========================================================== ==========

/Etc/init. d/httpd start

Note: Each parameter in svnserve. conf must be written in the top level, and there must be no spaces at the beginning.

 

Cp authz passwd/elain/data/svnpasswd/

 

Authz Configuration:

Cd/elain/data/svnpasswd/

Vi authz

Add

#################################

[Groups]

# Define a group

G_webadmin = elain

 

# Define a directory

[Trunk:/]

@ G_webadmin = rw

#################################

Tip: Pay attention to the method used to write the authz permission format.

1. In authz, each parameter must be written in the top-level format and cannot start with a space.

2. For a group, you do not need to start.

 

Passwd file user and password settings

 

Vi passwd

Add:

#######################

# User = passwd

Elain = elain

######################

Tip:

1. The SVN account is used before the equals sign and the svn password is used after the equals sign.

2. When you change svnserve. conf, You need to restart SVN and change authz and passwd files without restarting them.

 

Restart SVN command <not required>

Kill-USR1 'cat/elain/data/svndata/svn. Pi'

Svnserve-d-r/elain/data/svndata/-- pid-file =/elain/data/svndata/svn. pid

Tip: When svnserve. conf is changed, SVN needs to be restarted to change authz and passwd files.

 

The server has been deployed.

 

Client installation

 

Client Software

TortoiseSVN-1.6.5.16974-win32-svn-1.6.5.msi

 

Connection:

Svn: // 10.0.0.110/trunk

Username elain password elain

 

 

This article is from the "elain technical blog" blog

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.