SVN installation Combat

Source: Internet
Author: User

First, installation Preparation

1.[[email protected] ~]# hostname SVN Modify host name

2.[[email protected] ~]# cat/etc/redhat-release View System version

CentOS Release 6.5 (Final)

3.[[email protected] ~]# uname-a View kernel version

Linux svn 2.6.32-431.el6.i686 #1 SMP Fri Nov 00:26:36 UTC i686 i686 i386 gnu/linux


Second, start the installation

1.[[email protected] ~]# sed-i ' s#keepcache=0#keepcache=1#g '/etc/yum.conf the method of installing the RPM package locally without removing the RPM package

2.[[email protected] ~]# grep keepcache/etc/yum.conf Check Yum installation local does not clear whether the configuration is successful

Keepcache=1

3.[[email protected] ~]# yum-y install subversion yum installation svn

4.[[email protected] ~]# rpm-qa Subversion Check if installation is successful

subversion-1.6.11-15.el6_7.i686

Third, configure and start SVN

1.[[email protected] ~]# mkdir-p/application/svndata build svn version Coogan directory Svndata

2. Start the SVN root of the SVN service specified service

[Email protected] ~]# svnserve-d-r/application/svndata/--pid-file=/application/svndata/svn.pid means Fixed SVN service startup directory and PID file

3.[[email protected] ~]# lsof-i: SVN check configuration

COMMAND PID USER FD TYPE DEVICE size/off NODE NAME

Svnserve 1370 root 3u IPv4 23064 0t0 TCP *:svn (LISTEN)

[[email protected] ~]# lsof-i: 3690 See if SVN starts

COMMAND PID USER FD TYPE DEVICE size/off NODE NAME

Svnserve 1370 root 3u IPv4 23064 0t0 TCP *:svn (LISTEN)

[Email protected] ~]# Netstat-tlnup | grep SVN

[Email protected] ~]# Netstat-tlnup | grep 3690

4.[[email protected] ~]# svnserve--help View Help

Usage:svnserve [-D |-i |-T |-x] [options]


Valid options:

-D [--daemon]: Daemon mode

-I [--inetd]: inetd mode

-T [--tunnel]: Tunnel mode

-X [--listen-once]: listen-once mode (useful for debugging)

-R [--root] arg:root of directory to serve

-R [--read-only]: Force read only, overriding repository config file

--config-file arg:read configuration from File ARG

--listen-port Arg:listen Port

[Mode:daemon, Listen-once]

--listen-host arg:listen hostname or IP address

[Mode:daemon, Listen-once]

-T [--threads]: Use threads instead of fork [Mode:daemon]

--foreground:run in foreground (useful for debugging)

[Mode:daemon]

--log-file arg:svnserve log file

--pid-file arg:write Server process ID to file ARG

[Mode:daemon, Listen-once]

--tunnel-user Arg:tunnel username (default is current UID ' s name)

[Mode:tunnel]

-H [--help]: Display this help

--version:show Program Version Information

5.[[email protected] svndata]# svnadmin Create/application/svndata/sadoc Create a new Subversion project Sadoc

6. Configuration allows Tangbo users to read and write access

[Email protected] conf]# vim svnserve.conf

Anon-access = Read modified to None

auth-access = Write Enabled

Password-db =/application/svnpasswd/passwd

Authz-db =/application/svnpasswd/authz

Sed Quick Change Method:

[Email protected] conf]# sed-i ' s/# auth-access = write/auth-access=write/' svnserve.conf

[Email protected] conf]# sed-i ' s/# none-access = read/none-access=none/' svnserve.conf

[Email protected] conf]# sed-i ' s%# passwd-db = passwd%passwd-db =/application/svnpasswd/passwd% ' svnserve.conf

[Email protected] conf]# sed-i ' s%# authz-db = authz%authz-db =/application/svnpasswd/authz% ' svnserve.conf

7.[[email protected] conf]# egrep "\-access|\-db =" svnserve.conf Check for modified configuration file

Anon-access = Read

auth-access = Write

Password-db =/application/svnpasswd/passwd

Authz-db =/application/svnpasswd/authz

[Email protected] conf]#

8.[[email protected] conf]# cp authz PASSWD/APPLICATION/SVN Copy check password file and password permissions

svndata/svnpasswd/

[email protected] conf]# CP Authz passwd/application/svnpasswd/

[Email protected] conf]# ll/application/svnpasswd/

Total 8

-rw-r--r--1 root root + Sep 13:16 Authz

-rw-r--r--1 root root 309 Sep 13:16 passwd

[[Email protected] conf]# [[email protected] svnpasswd]# chmod 700 * Permissions modified to 700

9.[[email protected] svnpasswd]# VI passwd define password

Tangbo = 123456

Test = 123456

Test1 = 123456

[[email protected] svnpasswd]# Vim Authz Add the following items at the end

Ett_sa = Tangbo,test1

Ett_wangguan = Test

[sadoc:/]

@ett_sa =RW

@ett_wangguan =r

Test = R

10. Restart SVN

[Email protected] svnpasswd]# Pkill svnserve

[Email protected] svnpasswd]# svnserve-d-r/application/svndata/--pid-file=/application/svndata/

Iv. Client Installation:

1. Download and install the client--windows



This article is from the "Bobcat" blog, make sure to keep this source http://cqtangbo.blog.51cto.com/2978612/1752282

SVN installation Combat

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.