??????.  SVN server??
????2.1 ???yum ???SVN??
????????YUM server???????????
????Linux ?? YUM server
????http://blog.csdn.net/tianlesoftware/archive/2011/01/03/6113902.aspx
[root@singledb ~]# yum install -y subversion
Loaded plugins: rhnplugin?? security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package subversion.i386 0:1.4.2-4.el5_3.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package                Arch             Version                        Repository             Size
====================================================================================================
Installing:
subversion             i386             1.4.2-4.el5_3.1                rhel-base             2.3 M
Transaction Summary
====================================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 2.3 M
Downloading Packages:
subversion-1.4.2-4.el5_3.1.i386.rpm                                          | 2.3 MB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : subversion                                                                   1/1
Installed:
subversion.i386 0:1.4.2-4.el5_3.1
Complete!
????[root@singledb ~]#
???????????汾???
[root@singledb ~]# svnserve --version
svnserve?? version 1.4.2 (r22196)
compiled Aug  5 2009?? 19:03:56
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software?? see http://subversion.tigris.org/
This product includes software developed by CollabNet
????The following repository back-end (FS) modules are available:
????* fs_base : Module for working with a Berkeley DB repository.
????* fs_fs : Module for working with a plain file (FSFS) repository.
????2.2 ????SVN ?汾???
????[root@singledb ~]# mkdir /u02/svn
????[root@singledb ~]# svnadmin create /u02/svn/davesvn  --davesvn??汾???????
????2.3  SVN ????
?????????汾?????????????????????3???????????
????[root@singledb conf]# pwd
????/u02/svn/davesvn/conf
????[root@singledb conf]# ls
????authz  passwd  svnserve.conf
??????1??svnserve.conf??  svn??????????????
??????2??passwd?? username?????????
??????3??authz?? ????????????
????svnserve.conf ????? ?????????????????5??
????anon-access?? ?????????????汾????????
????auth-access??  ????????????汾????????
????password-db?? ???username????????????
????authz-db????????????????????????????????????·????????????????
????realm??????汾??????????????????????????????????????汾??????????????????????????username???????????
????Passwd ??? ??
??????????svnserve.conf???????????????????????????????£?
????[root@singledb conf]# cat passwd
????### This file is an 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?? one account per line.
????[users]
????# harry = harryssecret
????# sally = sallyssecret
????dave = davepwd
????tianlesoftware = tianlesoftwarepwd
????authz  ??? ??
????????????????????????????????
????[groups]
????admin = john?? kate
????devteam1 = john?? rachel?? sally
????devteam2 = kate?? peter?? mark
????docs = bob?? jane?? mike
????training = zak
????--???????????????????????棬????????????????????????????????????????????
????# ??????????????????
????# ????????????????????д??Σ????????в????????
????[/]  --????????????/u02/svn ?????
????* = r
????@admin = rw
????dangerman =
????# ????????????????????????汾???
????[proj1:/]
????@devteam1 = rw
????[proj2:/]
????@devteam2 = rw
????[bigproj:/]
????@devteam1 = rw
????@devteam2 = rw
????trevor = rw
????# ?????д??????????docs???????д???
????[/trunk/doc]
????@docs = rw
????# ??????????????????汾???
????[TrainingRepos:/]
????@training = rw
???????????????????????authz?????
????[root@singledb conf]# cat authz
????[groups]
????admin = dave
????dev=tianlesoftware
????[davesvn:/]
????@admin = rw
????@dev = rw
????[root@singledb conf]#
????2.4 ???????SVN????
??????1?????SVN????:
????[root@singledb conf]# svnserve -d -r /u02/svn
????-d?????????
????-r ???????????? /u02/svn
????[root@singledb conf]# ps -ef | grep svn
????root      4592     1  0 18:04 ?        00:00:00 svnserve -d -r /u02/svn
????root      4594  3709  0 18:04 pts/1    00:00:00 grep svn
??????2????SVN????:
????ps -aux |grep svn
????kill -9 ???????