Source Installation Version Management Subversion

Source: Internet
Author: User

Install SVN

System environment

[Email protected] ~]# UNAME-RM

2.6.32-504.el6.x86_64 x86_64

[Email protected] ~]# cat/etc/redhat-release

CentOS Release 6.6 (Final)

Install Apr

[Email protected] ~]# cd/softs/

[Email protected] softs]# WGE thttp://mirrors.hust.edu.cn/apache//apr/apr-1.5.2.tar.gz

[Email protected] softs]# Tar XF apr-1.5.2.tar.gz

[Email protected] softs]# CD apr-1.5.2

[Email protected] Apr-1.5.2]#./configure

[[email protected] apr-1.5.2]# make

[[email protected] apr-1.5.2]# make install

[[Email protected] apr-1.5.2]# CD

Installing Apr-util

[Email protected] ~]# cd/softs/

[Email protected] softs]# WGE thttp://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz

[Email protected] softs]# Tar XF apr-util-1.5.4.tar.gz

[Email protected] softs]# CD apr-util-1.5.4

[Email protected] apr-util-1.5.4]#./configure--with-apr=/usr/local/apr/

[[email protected] apr-util-1.5.4] #make

[[email protected] apr-util-1.5.4] #make Install

[[email protected] apr-util-1.5.4] #cd

Installing zlib

[Email protected] ~]# cd/softs/

[[email protected] zlib-1.2.8] #wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz

[Email protected] Zlib-1.2.8]#./configure

[[email protected] zlib-1.2.8] #make

[[email protected] zlib-1.2.8] #make Install

[[Email protected] zlib-1.2.8]# CD

Install SVN

[Email protected] ~]# cd/softs/

[email protected] softs]# wget http://mirror.23media.de/apache/subversion/subversion-1.9.3.tar.gz

[Email protected] softs]# wget http://www.sqlite.org/2016/sqlite-amalgamation-3130000.zip

[Email protected] softs]# Tar XF subversion-1.9.3.tar.gz

[Email protected] softs]# Unzip Sqlite-amalgamation-3130000.zip

[Email protected] softs]# cp-r sqlite-amalgamation-3130000 subversion-1.9.3/sqlite-amalgamation

[Email protected] softs]# CD subversion-1.9.3

[[Email protected]]#./configure--prefix=/app/subversion-1.9.3--with-apr=/usr/local/apr/--with-apr-util=/usr/ local/apr/

[[Email protected]]# make

[[Email protected]]# make install

[Email protected]]# ln-s/app/subversion-1.9.3//app/subversion

[[Email protected]]# CD]

Configuring Environment variables

[Email protected] ~]# sed-i ' $a \export path=/app/subversion/bin: $PATH '/etc/profile

[Email protected] ~]# Source/etc/profile

[[Email protected] ~]# SVN--version

SVN, version 1.9.3 (r1718519)

Compiled June, 01:44:46 Onx86_64-unknown-linux-gnu

。。。 Remaining omitted ...

Build a warehouse

[email protected] ~]# mkdir/repertory// root directory for all warehouses

[Email protected] ~]# svnadmin create/repertory/web/

[Email protected] ~]# ls/repertory/web/

Conf db format Hooks Locks README.txt

[Email protected] ~]# cd/repertory/web/conf/

[Email protected] conf]# tree

.

├──authz//Permissions control file

├──hooks-env.tmpl

├──PASSWD//user password file

└──svnserve.conf//config file

0 directories, 4 files

Configure the Warehouse

Configure the underlying configuration

[email protected] conf]# CP svnserve.conf Svnserve.conf.bak

[Email protected] conf]# vim svnserve.conf

[General]

Anon-access = None

anon-access = Write

Password-db = passwd

Authz-db = Authz

Configure permissions

[email protected] conf]# CP Authz Authz.bak

[Email protected] conf]# vim Authz

[Groups]

admin = Kevinhao

[web:/]

@admin = RW

Kevinhao = RW

Configure account password

[email protected] conf]# CP passwd Passwd.bak

[Email protected] conf]# vim passwd

[Users]

Kevinhao = 123456

[[Email protected] conf]# CD

Start SVN

[Email protected] ~]# svnserve-d-r/repertory/

[Email protected] ~]# lsof-i:3690

COMMAND PID USER FD TYPE DEVICE size/off NODENAME

Svnserve 95029 root 3u IPv4 77157 0t0 TCP *:svn (LISTEN)

Test

[[Email protected] ~]# SVN info--username=kevinhao--password 123456 svn://192.168.56.3/web

Path:web

Url:svn://192.168.56.3/web

Relative URL: ^/

Repository Root:svn://192.168.56.3/web

Repository uuid:357d6d18-31b8-11e6-a0bc-db0060075f0b

revision:0

Node kind:directory

Last Changed rev:0

Last Changed date:2016-06-14 06:43:12 +0800 (Tue, June 2016)

This article is from the "Chang Jie listen to the Wind People" blog, please make sure to keep this source http://kevinhao.blog.51cto.com/5204735/1788950

Source Installation Version Management Subversion

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.