SVN enables multiple projects on Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.