CentOS 6.5 System Setup SVN Service
View system kernel and number of bits
[Email protected] ~]# cat/etc/redhat-release
CentOS Release 6.5 (Final)
[Email protected] ~]# uname-a
Linux vm2.6.32-431.el6.x86_64 #1 SMP Fri Nov 03:15:09 UTC x86_64 x86_64 x86_64gnu/linux
installation Svn
Yum-y Install Subversion
View SVN package is installed
Rpm-aqsubversion
Subversion-1.6.11-15.el6_7.x86_64
Configuration and startup SVN Service
Establish SVN version Coogan directory (svndata) and Password permissions directory (svnpasswd)
Mkdir-p/application/svndata
mkdir-p/application/svnpasswd
start The SVN service process
Svnserve-d-r/application/svndata/
build The SVN repository
Svnadmin Create/application/svndata/sadoc
modifying The svnserver.conf configuration file
Backup configuration file
Cp-f Svnserve.confsvnserve.confbak
[Email protected] conf]# egrep "\-access|\-db=" svnserve.conf
# anon-access = Read
# auth-access = Write
# password-db = passwd
# authz-db = Authz
Modify
VI svnserve.conf
Anon-access = none #12 line
auth-access = Write #13 line
Password-db =/application/svnpasswd/passwd #20 line
authz-db =/application/svnpasswd/authz #27 line
Modify Authz ,passwd configuration file
CP Authz passwd/application/svnpasswd/
Enter /application/svnpasswd
chmod 700 *
Set Account password
Vi passwd
in the [Users] Add user and password in block format: Account number = passwords, such as Dan=dan
. Set Permissions
VI Authz
Add the following code at the end:
[sadoc:/]
Dan=rw
W=r
It means the repository root directory Dan have read and write access to it, W only Read permissions.
Restart the SVN service
Svnserve-d-R svnserve-d-r/application/svndate
Install the SVN client
Process omitted ....
-
13. test
Create a new test folder, and under that folder, right-click to select SVN Checkout as ( to install TortoiseSVN beforehand ) :
650) this.width=650; "width=" 221 "height=" 342 "src="/e/u261/themes/default/images/spacer.gif "alt=" Linux (CentOS) build SVN server-little wood-Green Tomato Paradise "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "/>
Fill in SVN address, such as:
650) this.width=650, "width=" 467 "height=" "src=,"/e/u261/themes/default/images/spacer.gif, "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
Enter a password, such as:
650) this.width=650; "Width=" 349 "height=" "" Src= "/e/u261/themes/default/images/spacer.gif" style= "Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
Login success:
650) this.width=650; "Width=" 679 "height=" 298 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
This is the SVN service setup.
This article is from the "technical operation and Maintenance" blog, please make sure to keep this source http://xf214.blog.51cto.com/2014275/1694944
CentOS 6.5 System builds SVN service