If there is currently a svnserve process running, the instruction
Killall Svnserve
Specifies the root directory to use when a directory is started by the SVN service, instruction
Cd/data 1 mkdir SVN The final path is:/DATA/SVN
Then create multiple SVN repositories in the/data/svn/directory, instruction
Svnadmin create/data/svn/lesterlee1
Svnadmin Create/data/svn/lesterlee2
The final directory structure should be this:/data/svn/data/svn/lesterlee1/data/svn/lesterlee2 will be/data/svn/lesterlee1/conf/directory Authz, passwd, Svnserve.con Copy to/data/svn/directory, instruction Cd/data/svn/lesterlee1/conf
CP./authz. /.. /
CP./passwd. /.. /
CP./svnserve.conf
At this point the SVN root directory should be structured as:
/data/svn
/data/svn/lesterlee1
/data/svn/lesterlee2
/data/svn/authz
/data/svn/passwd
/data/svn/svnserve.conf
Next, configure svnserve.conf, instructions
Cd/data/svn
VI svnserve.conf
Add the following content:
Anon-access = None
auth-access = Write
Password-db = passwd
Authz-db = Authz
Realm = SVN
After saving, the svnserve.conf configuration is complete,
Next Configure user Information
VI passwd configuration information is as follows:
[Users]
Lesterlee = password after saving,
At this point, the passwd configuration is complete,
Next Configure user permissions
VI Authz
The configuration information is as follows:
[Groups]
#用户组
Grouplesterlee= Lesterlee
#将用户lesterlee加入用户组grouplesterlee中
[/]
Lesterlee= RW
#读写权限
@grouplesterlee = RW
User group Read and write permissions
Finally, start the SVN service and instruct
Svnserve-d-R/DATA/SVN--config-file=/data/svn/svnserve.conf
Note: The next parameter, –config-file=/data/svn/svnserve.conf, is to tell the SVN service to invoke the SVN configuration file under the/DATA/SVN directory to unify the management of the child SVN version created under the/DATA/SVN directory. Use the user information, permissions information in the configuration file to manage each repository.
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1765747
How Linux (CentOS) uses SVN for multiple repository configurations