Mac self-built SVN server

Source: Internet
Author: User

First set up an SVN directory, the location can be arbitrary, with the desktop as an example

mkdir ~/DESKTOP/SVN

Create a new directory named Proj as a repository

$ cd ~/desktop/mkdir proj

Create the Repository

$ svnadmin Create ~/desktop/svn/proj

You can see the passwd, svnserve.conf, and Authz three files in the ~/desktop/svn/proj/conf directory, which is the file we need to configure

Edit svnserve.conf File

You can see that all the statements are in the comment State, modify some statements (remove the comment, modify the configuration after the equals sign, and so on). The specific meaning can be referred to the text described in the document.

anon-access = Noneauthwritepasswordpasswdauthz-db = Authz

Edit passwd File

Add the account number and password you want under [users]

Robin = MyPwd

This adds a username named Robin with a password of mypwd.

Edit Authz File

Configure a user group under [groups]

admin = Robin

Indicates that the Admin user group contains a Robin user, separated by commas if additional users need to be added

Modify the [Foo/bar] below to the [/] root directory and configure the permissions information

@admin = RW

Need to add the @ symbol before the user group

-----------------------------------------------------------------------------------------

At this point, the configuration section is basically complete

Next, you can start the SVN service

$ svnserve-d-R ~/DESKTOP/SVN

If you need to stop the service command for

sudo killall -9 Svnserve

Mac self-built SVN server

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.