SVN is actually subversion, divided into server-side and client. This toss is recorded on the server side of the installation process.
The system environment description is as follows:
Operating system: Centos6.4 x86
svn:subversion-1.8.0
apache:httpd-2.4.6
If you turn on the firewall, add the following rules to release SVN port 3690
Iptables-a input-p TCP--dport 3690-j ACCEPT
Iptables Save
Check to see if a lower version of SVN is installed
Rpm-qa | grep subversion
The default version that is generally returned:
subversion-1.6.11-9.el6_4.i686
Uninstall the old version of SVN
Yum Remove Subversion
Steps for downloading, compiling, and installing
1. Compile and install httpd-2.4.6
Download and unzip the dependency pack apr-1.4.8, apr-util-1.5.2
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.4.8.tar.gz
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.5.2.tar.gz
TAR-ZXF apr-1.4.8.tar.gz
TAR-ZXF apr-util-1.5.2.tar.gz
Download and extract httpd-2.4.6
wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.6.tar.gz
TAR-ZXF httpd-2.4.6.tar.gz
Move apr-1.4.8, apr-util-1.5.2 to httpd-2.4.6 srclib directory
MV apr-1.4.8 HTTPD-2.4.6/SRCLIB/APR
MV apr-util-1.5.2 Httpd-2.4.6/srclib/apr-util
Compiling httpd-2.4.6 www.111cn.net
CD httpd-2.4.6
./configure--prefix=/usr/local/apache--enable-so--enable-dav--enable-deflate=shared--enable-ssl=shared- enable-expires=shared--enable-headers=shared--enable-rewrite=shared--enable-static-support--with-included-apr- -enable-modules=all--enable-mods-shared=all--with-mpm=prefork
Make && make install
2. Compile and install subversion-1.8.0
Compile and install sqlite3.7.17
wget http://www.sqlite.org/2013/sqlite-autoconf-3071700.tar.gz
TAR-ZXF sqlite-autoconf-3071700.tar.gz
CD sqlite-autoconf-3071700
./configure
Make && make install
Download the SVN source package and install
wget http://mirrors.tuna.tsinghua.edu.cn/apache/subversion/subversion-1.8.0.tar.gz
TAR-ZXF subversion-1.8.0.tar.gz
CD subversion-1.8.0
./configure--with-apr=/usr/local/apache--with-apr-util=/usr/local/apache--with-sqlite=/usr/local
Make && make install
Check to see if the installation was successful
Svnserve--version
return value:
Svnserve, Version 1.8.0 (r1490375)
Compiled June 2013, 21:32:09 on I686-PC-LINUX-GNU
Copyright (C) 2013 the Apache Software Foundation.
This software consists of the contributions made by many people;
The NOTICE file for more information.
Subversion is open source software, http://subversion.apache.org/
The following repository back-end (FS) modules are available:
* Fs_fs:module for working with a plain file (FSFS) repository.
Cyrus SASL authentication is available.
Code base Creation
Mkdir-p/opt/svn/repositories
Svnadmin create/opt/svn/repositories
After executing the above command, automatically set up repositories library, view/opt/svn/repositories folder discovery contains Conf,db,format,hooks,locks, README.txt, and other documents, description of an SVN library to build complete.
Configuring Code Libraries
Go to the generated folder conf, configure
Cd/opt/svn/repositories/conf
User Password passwd configuration
VI passwd
The contents of the passwd file are as follows:
### This file is a example password file for Svnserve.
### its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [Users].
### the name and password for each user follow.
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Test = 123456789
Permissions Control Authz Configuration
VI Authz
The goal is to set which users have access to which directories, and the contents of the Authz file are as follows:
The
### This file is a example authorization file for Svnserve.
### Its format was identical to of MOD_AUTHZ_SVN authorization
### files.
### as shown below each section Defines authorizations for the "path" and
### (optional) repository specified by the section name.
### the Authoriz ations follow. An authorization line can refer to:
### -A single user,
### -a group of users defined in a special [ Groups] section,
### -the alias defined in a special [aliases], and
### -all authenticated Users, Using the ' $authenticated ' token,
### -only anonymous users, using the ' $anonymous ' token,
### -Any One, using the ' * ' wildcard.
###
### A match can is inverted by prefixing the rule with ' ~ '. Rules can
### Grant read (' R ') access, read-write (' RW ') access, or no access
### (').
[Aliases]
# Joe =/c=xz/st=dessert/l=snake City/o=snake oil, ltd./ou=research Institute/cn=joe Average
[Groups]
# harry_and_sally = harry,sally
# Harry_sally_and_joe = Harry,sally,&joe
# [/foo/bar]
# Harry = RW
# &joe = R
# * =
# [Repository:/baz/fuz]
# @harry_and_sally = RW
# * = R
[/]
Test = RW
Set [/] to represent all resources under the root directory
Service svnserve.conf Configuration
VI svnserve.conf
The contents of the svnserve.conf file are as follows:
[General]
#匿名访问的权限, can be read,write,none, default to read
Anon-access=none
#使授权用户有写权限
Auth-access=write
#密码数据库的路径
password-db=passwd
#访问控制文件
Authz-db=authz
#认证命名空间, subversion will appear in the authentication prompt, and as a key to the voucher cache
Realm=/opt/svn/repositories
Start the SVN service
Svnserve-d-r/opt/svn/repositories
View the SVN process
Ps-ef|grep svn|grep-v grep
Return
Root 20850 1 0 Jul24? 00:00:00 svnserve-d-r/opt/svn/repositories
To view the ports that SVN listens on
Netstat-ln |grep 3690
Stop starting SVN
Killall Svnserve #停止
Svnserve-d-r/opt/svn/repositories #启动
Currently the most popular SVN client is not TORTOISESVN
Download installation
Http://sourceforge.net/projects/tortoisesvn/files/latest/download?source=dlp
Client Connection Address: svn://public network or intranet IP address
Username/password: test/123456789