Installing and using SVN in server

Source: Internet
Author: User
Tags tortoisesvn collabnet

1. installation:

[[email protected] ~]# yum install subversion

2. Check whether the installation is successful:

[[Email protected] ~] # Svnserve -- versionsvnserve, version 1.6.11 (r934133) is compiled on Mar 6, 2000: 49: 10 Copyright (c) 2009-collabnet. Subversion is open source software, see http://subversion.tigris.org/site. This product contains software developed by collabnet (http://www.Collab.Net. The backend (FS) module of the following versions is available: * fs_base: the module can only operate on the bdb version library. * Fs_fs: This module works with the text file (fsfs) version library. Cyrus SASL authentication is available. [[Email protected] ~] #

3. Create a version Library:

[[email protected] bin]# cd /var/www/html[[email protected] html]# lsphpinfo.php  phpMyAdmin  phpMyAdmin-4.0.10.5-all-languages.tar.gz  start[[email protected] html]# mkdir svnrepos[[email protected] html]# svnadmin create svnrepos[[email protected] html]# 

4. Configuration:

After the version library is created, multiple files or directories are generated under the svnrepos directory:

[[Email protected] svnrepos] # Total ll usage: 24drwxr-xr-x. 2 root Root 4096 October 23 02:25 confdrwxr-Sr-X. 6 root 4096 October 23 02:25 DB-r --. 1 Root 2 October 23 02:25 formatdrwxr-XR-X. 2 root Root 4096 October 23 02:25 hooksdrwxr-XR-X. 2 root Root 4096 October 23 02:25 locks-RW-r --. 1 Root 229 October 23 02:25 readme.txt [[email protected] svnrepos] #

Resolution:

Conf: the configuration directory, including:

Authz: Permission control,

Passwd: Set the user and password.

Svnserve. conf: sets svn-related operations.

4.1> passwd settings:

[[email protected] conf]# vim passwd [users]# harry = harryssecret# sally = sallyssecretsvnuser = svnuser

Create svnuser: svnuser

4.2> authz permission settings:

[[Email protected] conf] # Vim authz // Add the following statement [/] svnuser = RW // resolution at the end: the user svnuser has read and write permissions on the root directory of the version library.

4.3> svnserve. conf settings:

[[Email protected] conf] # Vim svnserve. conf // open the following comments: anon-access = none # anonymous users cannot access auth-access = write # authorized users can write password-DB = passwd # Which file to use as the account file authz-DB = authz # Which file to use as the permission file realm =/var/SVN/svnrepos # Name of the authentication space, version library directory

5. Start:

[[email protected] conf]# svnserve -d -r /var/www/html/svnrepos

6. Client Connection and test:

6.1> Client installation (tortoisesvn ):

Download URL: http://tortoisesvn.net/downloads.html, install.

6.2> connection and test:

Create a folder svnrepos under the project (WWW), right-click SVN checkout,

Enter: SVN: // 192.168.152.130, OK,

The test is successful.

Installing and using SVN in server

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.