CentOS 6.5 SVN Server Setup documentation

Source: Internet
Author: User

1. Install Subversion

Yum Install Subversion-y

2, set up the project directory, and initialize

Svnadmin Create/home/svn/project

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/56/C7/wKiom1SNi3jxHKhSAAFqoq0JkPo971.jpg "title=" 1.png " alt= "Wkiom1sni3jxhkhsaafqoq0jkpo971.jpg"/>

3. Modify configuration file, create new user and set permissions

Cd/home/svn/project/conf

Authz Permissions Control File

passwd account password File

Svnserve.conf SVN service configuration file

Add user Tom and password

Vim passwd

[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Tom = Tom

To set permissions, add the following code at the end:


Vim Authz

[/]
Tom=rw

Give Tom Read and write permissions to the root directory

Modify the service configuration file to open some comments:

Vim svnserve.conf

Anon-access = Read #匿名用户可读

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

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

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

Realm = My SVN repo # Certified space name, directory where repository is located

Note that there are no spaces before each line

4. Start the SVN repository

Svnserve-d-r/home/svn/project

Local testing


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/56/C7/wKiom1SNjpXx_V1vAANMTz0MBeI282.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1snjpxx_v1vaanmtz0mbei282.jpg "/>

Note: First, you will be asked to enter the root password, and then enter the new user and password, and finally select Yes to automatically download a copy to the current directory.


5. Testing in Windows

Enter the path, click OK, enter the user name and password

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/56/C5/wKioL1SNj-yT4tgpAAFnzdT4hco819.jpg "title=" 4.png " alt= "Wkiol1snj-yt4tgpaafnzdt4hco819.jpg"/>

Similarly, the project directory is automatically generated, which has an. SVN directory that contains information about the current repo and the configuration file.

The general version of SVN can be updated in the project directory.

This article is from the "World" blog, make sure to keep this source http://xiajie.blog.51cto.com/6044823/1589860

CentOS 6.5 SVN Server Setup documentation

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.