Linux System SVN Installation Guide configuration instructions

Source: Internet
Author: User

Linux

System

Svn

Installation Guide Configuration instructions

1

Installation

Svn

Pre-check:

Check whether the installation

Svn

Rpm-qa Subversion

View Installation

Svn

Version information:

Svnserve--version

If an older version is present, uninstall the old version

Svn

Yum Remove Subversion

2

Installation

Svn

Yum Install Subversion

3

Code Base creation:

Mkdir-p/opt/svn/repos

Svnadmin Create/opt/svn/repos

After executing the above command, automatically establishes

Repos

Library, viewing

/opt/svn/repos

The folder discovery contains

Conf

Db,format,hooks, Locks, README.txt

and other documents that describe a

Svn

Library has been established.

4

To configure the code base:

Go to the folder created above

Conf

, configure the following:

Cd/opt/svn/repos/conf

1

) settings

Svn

User and Password: modify file

passwd

, such as the following:

The goal is to set which users can access

Svn

Resource Library

[Email protected] conf]# VI passwd

[Users]

# Harry = Harryssecret

# sally = Sallyssecret

#

User name

=

Password

Chenqian = Chenqian

Wangwu = Wangwu

Hello = 123

#

So that we can build a

3

User, which has a user who is a

Hello

Password

123

, all of the above statements must be shelf written

,

Left cannot leave blank

,

Otherwise, it will go wrong

.

2

) settings

Svn

User Access control: modifying files

Authz

, such as the following:

The goal is to set which users can access which directories,

Authz

The file appends the following content:

[Email protected] conf]# VI Authz

[Groups]

# harry_and_sally = harry,sally

# Harry_sally_and_joe = Harry,sally,&joe

admin = Chenqian,wangwu

#

Set up

[/]

Represents all resources under the root directory

[/]

or write

[repl:/]

@admin = RW

Hello = R

#

means that

Admin

In the group

2

Users to

Repos

All directories under the library have read and write permissions,

Hello

Only readable permissions,

Of course it can be limited. All of the above statements must be shelf written

,

Left cannot leave blank

,

Otherwise, it will go wrong

.

3

Set service profile: Modify file

Svnserve.conf

, such as the following:

[Email protected] conf]# VI svnserve.conf

[General]

#

Permissions for anonymous access, which can be

Read,write,none,

Default is

Read

Anon-access=none

#

Enable authorized users to have write permissions

Auth-access=write

#

Path to the password database

password-db=passwd

#

Access Control files

Authz-db=authz

#

Authentication namespace,

Subversion

is displayed in the authentication prompt and is used as a keyword for the credential cache

Realm=/opt/svn/repos

#

All of the above statements must be shelf written

,

Left cannot leave blank

,

Otherwise, it will go wrong

.

5

Start

Svn

Service:

Svnserve-d-r/opt/svn/repos

Or

/etc/init.d/svnserve restart

1

) with

-D

Option to run as a separate daemon,

-R

option to specify the directory under which to publish the

Version Library;

2

Once the server is running, it is on the default port

3690

To monitor, use

Telnet

can be tested to

3690

Port is

has been opened, as follows:

# telnet 127.0.0.1 3690

Trying 127.0.0.1 ...

Connected to HINEX.VM (127.0.0.1).

Escape character is ' ^] '.

(Success (2 2 () (Edit-pipeline svndiff1 absent-entries commit-revprops

Depth log-revprops partial-replay)))

3

) If you need to change

Svn

Service default port

:

To view port usage:

Netstat-antp

Start

Svn

and specify the Port method is:

svnserve-d--list-port 3700-r/opt/svn/repos

6

View

Svn

Service is normal:

Ps-ef|grep SVN

Or

PS Aux|grep SVN

7

Svn

Client

TortoiseSVN

Connection Access Service-side address:

Svn://ip/repos

Remember to let the firewall leave

3690

Port OH

,

Otherwise not accessible

Svn

The default port is

3690.

In addition

, if you need to add a

Svn

The repository in the server is ported to another one

Svn

Server, you can direct the original

In this library

Db

The contents of the folder are all copied to the new

Svn

Server corresponding repository directory can be, also note two

Svn

That the server is running

Svn

Versions, incompatibilities may occur with different versions.

Linux System SVN Installation Guide configuration instructions

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.