Linux under Installation configuration svn

Source: Internet
Author: User

1. Check if SVN is installed on the system

Rpm-qa Subversion

is not installed, install it using the following command

Yum-y Install Subversion

2. Configure SVN and start the SVN service

(1) Specify the data storage path for SVN

Mkdir-p/application/svndata

(2) Specify the SVN profile information path

Mkdir-p/application/svnpasswd

(3) Start SVN service

Svnserve-d-r/application/svndata/

3. Detect if SVN service is started

Way One: Ps-ef|grep svn

Way Two: Netstat-lntup | grep 3690

Way three: Lsof-i: 3690

4. Build the SVN project repository using Svnadmin

(1) View Create Project Repository command

Svnadmin--help

Svnadmin help Create

(2) Create Sadoc repository

Svnadmin Create/application/svndata/sadoc

5. Configure permissions for the Sadoc version

(1) Enter the Sadoc repository configuration directory and back up the configuration file

cd/application/svndata/sadoc/conf/

Cp-p svnserve.conf Svnserve.conf.default

(2) Detailed configuration

Vim svnserve.conf

Anon-access = none//Prohibit anonymous access

auth-access = write//Read permission after authentication

PASSWORD-DB =/application/svnpasswd/passwd//Specify Password file

AUTHZ-DB =/appplication/svnpasswd/authz//Specify Permissions Authentication file

6. Copy the passwd and Authz files to the Sadoc svnpasswd directory and modify the permissions

Cp-p/application/svndata/sadoc/conf/authz passwd/application/svnpasswd/

cd/application/svnpasswd/

ll

chmod Authz passwd

ll

7. Create a user for the SVN repository and authorize access to the specified project repository

(1) Edit passwd file Configure user and password

vi/application/svnpasswd/passwd

(2) Edit Authz file to configure Read permissions

[< Repository >:/project/catalog]

@< user Group Name > = < permissions >

< user name > = < permissions >

8. Restart the SVN service for verification

(1) Kill SVN service

Pkill Svnserve

(2) Start SVN

Svnserve-d-r/application/svndata/

Note: Modifying the passwd and Authz files does not require a restart of the SVN service and modifying the svnserve.conf requires

9. Installing the Client for Sadoc configuration is correct

SVN--username=xingmaogou Co svn://121.xxx.xxx.xx9/sadoc

  

Reference: http://jingyan.baidu.com/article/f0e83a259daec522e59101e0.html

Linux under Installation configuration 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.