Recently engaged in a cloud server, trying to deploy some server-related things, as a development server, the first consideration is to build the SVN server. Make a note of the build process for easy viewing later.
First, install SVN software, some cloud servers will have the SVN server installed, some do not.
# Yum install-y subversion //Online installation svn
# Svnserve--version //Check SVN version
Second, create the SVN repository
1. Create a project version directory
# MKDIR/HOME/SVN &NBSP ; //svn directory
2, create a new repository
# svnadmin Create/home/svn/project //project is the project name
3, add user, to add SVN user is very simple, just in the SVN project root directory conf/passwd file user with a LIXF.
< Span style= "Font-family:verdana,sans-serif" > [users]
# Harry = Harryssecret
# sally = Sallyssecret
lixf= 123456
&NBSP;4, configure account permissions, need to modify authz file.
The first is to configure permissions groups, which is configured with 2 groups Admin and Dev: /span>
[groups]
/span>
# harry_and_sally = harry,sally
span> # Harry_sally_and_joe = Harry,sally,&joe
/ span> admin = lixf, Other
Then configure the specific permissions,
[/]
@admin = RW
* =& nbsp
[/doc]
& nbsp @cehua = RW
@chengxu = R
5, let the above configuration take effect, need to modify SVN project root directory Next conf/svnserve.conf the contents of the file. Change the following fields to the following values and remove the previous # number to make the configuration effective.
# anon-access = None
# auth-access = Write
# authz-db =/svrt/wuxia/conf/authz
# password-db =/svrt/wuxia/conf/passwd
6. Start SVN service
# svnserve-d-r/home/svn
7, test server
# SVN co svn://127.0.0.1/project
/span>
/span>