To create the SVN directory, I created it directly under the root directory
Mkdir/svn_repos
Creation of 2 SVN repositories
Svnadmin Create/svn_repos/project1
Svnadmin Create/svn_repos/project2
Enter the Project1 configuration folder and you will see three files (Authz, passwd, svnserve.conf)
Cd/svn_repos/project1/conf
Copy Authz, passwd this two files in Project1 and Project2 sibling directories
CP Authz Passwd/svn_repos
Delete Authz, passwd two files under the/svn_repos/project1/conf and/svn_repos/project1/conf directories
RM-RF Authz passwd
Configuring the svnserve.conf file under Project1
Vim/svn_repos/project1/conf/svnserve.conf
The contents are:
Anon-access = Read
auth-access = Write
Password-db =.. /.. /passwd
Authz-db =.. /.. /authz
Realm =/svn_repos/project1
Configuring the svnserve.conf file under Project2
Vim/svn_repos/project1/conf/svnserve.conf
The contents are:
Anon-access = Read
auth-access = Write
Password-db =.. /.. /passwd
Authz-db =.. /.. /authz
Realm =/svn_repos/project2
Enter the/svn_repos directory to configure passwd, Authz
vim/svn_repos/passwd
The contents are:
[Users]
ADM = 123
Zhangsan = 789
Vim/svn_repos/authz
The contents are:
ADM = ADM
Aspnet=zhangsan
[/]
@adm = RW
[project1:/]
@aspNet =RW
[project2:/]
@aspNet = RW
Start the SVN service (if your SVN is installed, the environment variables are configured)
Svnserve-d-r/svn_repos
Stop SVN service
Killall Svnserve
SVN enables multiple projects on Linux