Linux builds SVN service and manually synchronizes code to the Web directory

Source: Internet
Author: User
Tags svn update

1. Install SVN server

Yum-y Install Subversion

2. View information such as installation path

RPM-QL Subversion

3. View SVN Help information

SVN help

4. Create the SVN repository directory (this is a large library, which is a library of individual projects created with Svnadmin)

Mkdir/home/svndb

5. Create a repository (project)

mkdir/home/svndb/test/

Svnadmin create/home/svndb/test/

6. Configuring the Repository

Into/home/svndb/test/conf, with three files in it.

Authz file is a permission control file

passwd is the account password file

Svnserve.conf SVN service configuration file

(1) Add the user name and password in the [users] block of the passwd file: account = password, e.g. Username=password

(2) Increase at the end of the Authz

[/]

Username=rw

(*=) This is the other has no read and write permission, the front of the

(3) in svnserve.conf

Remove the three preceding # numbers, as follows

auth-access = Write #授权用户可以写

Password-db = passwd #使用passwd作为账号文件

Authz-db = Authz #使用authz作为权限文件

PS: Note that there must be no spaces in front

7. Start the SVN service and start the Big warehouse here.

Svnserve-d-r/home/svndb

8. Client installation Skip here, go directly to the server update to the Web directory

SVN co svn://your IP you want to put in that directory (so create to web directory if update can be in that directory directly SVN update, but with SVN hidden files)

SVN export svn://your IP which directory you want to put in (such a web directory does not have SVN hidden files, but cannot be updated directly with SVN update, recommended above)

Linux builds SVN service and manually synchronizes code to the Web directory

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.