Linux Build SVN Support SVN protocol and HTTP protocol

Source: Internet
Author: User

  

This article is mainly for the access to SVN two protocols to illustrate one is the SVN itself service protocol, one is to run HTTP through Apache Access SVN Protocol SVN protocol access format similar to the following

Svn://192.168.1.34/repos/cotton

The SVN protocol has a certain disadvantage is that only through the LAN access, if you want to do outside network mapping through the extranet IP and port access to the SVN server will need to use the HTTP access format.

The HTTP protocol access format is similar to the following

Http://192.168.1.34/repos/cotton

First install the SVN mode

L Turn off the firewall or open SVN default port 3690

l See if older versions are installed

Rpm-qa|grep Subversion

L Uninstall old version

RPM-E Subversion

L Install new version

Yum Install Subversion

L Create a repository path

Mkdir/home/svn

Cd/home/svn

L Create a version library

Svnadmin Create Cotton

L ENTER the path

CD cotton/conf

L Edit Permissions File

Vim Authz

[Groups]

admin = Admin

[/]

@admin = RW

L Edit Password file

Vim passwd

admin = Admin

L Edit SVN config file

Vim svnserve.conf

L Start SVN Service

Svnserve-d-r/home/svn/cotton

L Export SVN data

Svnadmin Dump D:\Repositories\cotton > E:\svn_back\svnbak.dump

L Import SVN data

Svnadmin Load D:\Repositories\cotton < E:\svn_back\svnbak.dump

L Access Address: Svn://192.168.1.34/cotton/trunk

Next HTTP Access SVN protocol installation

L Mounting httpd

Yum Install httpd

L Start Service

Service httpd Start

L MOD_DAV_SVN Module installation

Yum-y Install MOD_DAV_SVN

L Modify HTTP configuration file

Vim/etc/httpd/conf.d/subversion.conf

L Create a password file

Htpasswd-c/ETC/HTTPD/CONF.D/PASSWD Admin

L Create permissions file

Vim/etc/httpd/conf.d/authz

L Authorization of SVN library permissions

Chown-r Apache.apache Cotton

Chcon-r-T httpd_sys_content_t Cotton

L Restart Apache

Service httpd Restart

L HTTP Access Svn:http://192.168.1.34/repos/cotton

Linux Build SVN Support SVN protocol and HTTP protocol

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.