SVN Server Setup

Source: Internet
Author: User
Tags svn client

1, install the SVN client

sudo apt-get install subversion

2, create a version library

Svnadmin CREATE/DATA/SVN

3, Configuration Serveice

3.1,svnserve.conf Modify the following sections anon-access = read  auth-access = write  password-db = passwd  authz-db = Authz  3.2,PASSWD modified to: [users]  username = password    //username here and password themselves set  3.3,authz finally add the following two lines (these two lines resolved the SVN client solves authorization failed problem) [\]*=RW

  

4, start the service

Svnserve-d-r/data/svn/

5, using SVN hooks to synchronize code to the Web

Cd/data/svn/hookssudo  mkdir post-commitsudo chmod 755 post-commit Enter as follows #!/bin/shrepos= "$" rev= "$" svn up/var/www/ mysite/--username=user1--password=123456

  

SVN Server Setup

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.