CentOS7 builds SVN server

os:Linux mysql01 3.10.0-229.el7.i686 #1 SMP Sun May 17 14:06:40 UTC 2015 i686 i686 i386 GNU/Linux

installation: yum install subversion

Check the version to verify if the installation is successful:



Create the SVN repository directory: mkdir -p /var/svn/svnrepos

Create a repository: svnadmin create /var/svn/svnrepos

Enter the repo and you can see the following files:



Enter the conf configuration file as follows:

svnserve.config: (defines all authentication and authorization policies)
    anon-access = read #The access rights of anonymous users should be no access rights
    auth-access = write #Authentication user authorization
    password-db = passwd #The authentication file of the specified user is the passwd file
    authz-db = authz #The authorization file of the specified user for authz.

password: (stores project member account information)
smallbug=smallbug #The left side of the equal sign represents the user name, and the right side of the equal sign represents the password

authz: ​​(group authorization control)
   
[groups]
sgroup=smallbug #smallbug belongs to the sgroup group

[svnrepos:/]: #For svnrepos warehouse
@sgroup=rw #Members in the sgroup group have read and write permissions
*=r #Others have read-only permissions

Start the   svn library: svnserve -d -r /var/svn #Do not add svn There can be no spaces in front of the above settings in the library folder !



Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326772957&siteId=291194637
Recommended