Configure SVN server for MAC and macsvn Server

Source: Internet
Author: User
Tags svn client

Configure SVN server for MAC and macsvn Server

Configure SVN server for MAC

================

The MAC already comes with SVN, so use it directly.

1. Create svn repository

Svnadmin create/path/svn/pro // repository location, svn is the svn directory, and pro is the directory of a version Library

PS: There is an ambiguity here. After adding SVN in this way, remember to use the/path/SVN path when starting the svn service, you cannot use the path/svn/pro. Otherwise, the doesn' t exist will be reported.

2. Configure svn user permissions.

The/path/svn/pro/conf/directory contains three files: authz, passwd, and svnserve. conf.

(1) Configure svnserve. conf

Replace

# Anon-access = read
# Auth-access = write
# Password-db = passwd
# Authz-db = authz

Remove the # sign before the four rows, and change anon-access = read to anon-access = none, so that anonymous access is prohibited.

PS: It should be noted that there is a space after #. You must remove this space and use the top space of the text. Otherwise, there will be errors.

(2) Configure passwd

It stores the user and password. For example, you can simply add the user and password according to its format.

Test 1 = 123

Test 2 = 456

(3) Configure authz

[Groups] is followed by user group settings. You can add users you set in passwd to different user groups. Then, you can set different permissions for different user groups, this prevents the trouble of setting multiple users. Multiple users are separated by commas. It can be done according to its example

[Groups]

Testgroups = test1, test2

Then, you can set permissions for different versions of the database. There is an example below, you can write it as needed. If you need to set permissions for all versions of the database, use. For example:

[/]

@ Testgroups = rm

PS: The @ symbol must be used before the user group. If you are a user, you can directly write the user name. Rm indicates read/write. Obviously, read-only is r.

3. Start the SVN Service

Svnserve-d-r/path/svn note that the path must be the SVN directory, not the directory of one of the version libraries. Otherwise, it can be started properly, that is, there is a problem with access.

If no output exists, the startup is successful.

4. Start and Stop the service/restart

Directly Delete the process, kill-9 svnserve, and then start the service.

5. Test

Svn checkout svn: // 127.0.0.1/pro -- username = test1 -- password = 123./pro


How can I start the svn service on mac OS 109?

Set:

#! /Bin/bash

Svnserve-d-r/Your SVN server path

Save as an executable file;

Add the executable file you saved above in system preference settings-user and group-Logon items.

A cvs or SVN server in a mac system, preferably with a GUI

Other svn files in mac are less useful than those in integration. I tried it. You can configure svn in windows, so that you may be more familiar with it (I tried it when I started the configuration and read the descriptions of others, you can't understand it. You may not understand some of the professional words that you have never used before. Therefore, you must first have an intuitive impression on it, for example, you know what a version library is, how to upload and download, how to create a version library, and what data format files are uploaded to the server, then you must configure it in mac osx, if you are familiar with mac ). You can configure the server in windows, and then upload and download it in the local svn client.
 

Related Article

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.