CentOS Summary Linux under SVN installation and use

Source: Internet
Author: User
Tags readable svn svn client

I. Installing the YUM installation under CentOS
install subversion
To see if the installation was successful:
--version

View installation content and location

RPM-QL Subversion

Two. Configure the SVN repository directory to create
mkdir /home/svncd /home/svn

New repository: Testcode

Svnadmin Create/data/svn/testcode

Note: After execution, the file description in the/data/svn/testcode directory

README.txt documentation for the repository

Conf profile folder (the folders with the most subsequent actions)

DB SVN data File folder

Format version number of the current repository

Hooks SVN's Hooks script folder

Locks svn file Lock related folders


Testcode Library Add users, assign permissions

A. Configuring SVN

Vim/data/svn/testcode/conf/svnserve.conf

Anon-access=none #去除文件前的注释, change read to None to prevent anonymous access

Auth-access=write #去除文件前的注释

PASSWORD-DB=PASSWD #去除文件前的注释

Authz-db = Authz #去除文件前的注释, access rights configuration, very important, do not open, group permissions do not take effect

B. Adding access to Testcode users

vim/data/svn/testcode/conf/passwd

[Users]

# Harry = Harryssecret

# sally = Sallyssecret

albert=123456

findyou=123456

abc=123456

love=123456

Note: Four + users added

C. Setting the added user rights

Vim/data/svn/testcode/conf/authz

[Groups]

G_qa=albert,findyou

G_read=abc

[testcode:/] #[< version library name >:< path;]

@g_qa =rw #< User Group > = < permissions >, the first way

@g_read =r #< User Name > = < permissions >, the second way

Love=r

*= #* = < permissions;, the Third Way, * for any user, this is to prohibit anonymous user access

Note: albert,findyou readable writable, ABC, love readable, other inaccessible

D. Firewall Open SVN port pass

Iptables-a input-p TCP--dport 3690-j ACCEPT

Start SVN service
-d -r /home/svn 
Three. SVN Client connection

SVN Client Access

Svn://ip/testcode

Installing TORTOISESVN connections under Windows Svn://192.168.1.254/59wang

CentOS Summary Linux under SVN installation and use

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.