Linux Installation svn

Source: Internet
Author: User
Tags readable svn update

Linux Build SVN

Administrator usage Instructions

1. Install and start the SVN server

Install svn:

start svn:svnserve-d-R dir ( Warehouse Absolute path )

Note:dir is the path behind the svn Server root directory,

2. Visit the project:

A: Anonymous access read: readable. Write: Readable and writable. None: No permissions, default.

access permissions are set in the configuration file in the warehouse directory. anon-access = Write

B: Authorized access read: readable. Write: Readable and writable. None: No permissions, default. The following three files need to be set for authorized access.

access permissions are set in the configuration file in the warehouse directory. #auth-access = Write

permission File settings:authz-db = Authz Specify permissions for the Access user

password file settings:password-db = passwd Specifies that the file holding the authorized user password is passwd.

Configuration format for the following two files:

Authz: Group:[Groups]

Dev=zs, ls

Permissions:

[/]

@dev =RW # indicates that the dev Group is readable and writable for all directories

*= # indicates that no other person can access

passwd:user=passwd

3. Note that eclipse defaults to using git only ,not svn, using svn to add svn plugin.

offline: put the Eclipse_svn_site plugin package into the Eclipse directory and extract it proactively,eclipse The package is not automatically unzipped.

Online:help->eclipse marketplace Search:subversion or subeclipse and install.

4, publish the project address:svn://ip/ specific warehouse address directory.

5. How to modify Authz without grouping method

[shop:/]

ZS = RW

ls = RW

indicates that ZS and ls can access all directories under the shop warehouse.

6, create the warehouse. svnadmin Create repository root directory.

7, the SVN through the WEB interface to view management.

Download The httpd service,centos7 's httpd Service root directory is:/var/www/html

Create a post-commit file that reads as follows

[email protected] hooks]# cat Post-commit

#!/bin/sh

Web=/var/www/html/conference/d8101

Export Lang=en_us. UTF-8

SVN update $WEB--username xxx--password xxx

issue 1:Show Log has no information such as author and version number

Workaround:anon-access = None

Realm =/home/xxx/sitproject

Issue 2: Unable to modify log and author

Workaround:

MV Pre-revprop-change.tmpl Pre-revprop-change

chmod 755 Pre-revprop-change

Modify author is forbidden in the script.

See that you need to modify the script content.

Linux Installation svn

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.