Installing SVN server in CentOS version of Linux system

Source: Internet
Author: User

1, download the relevant tools, the code is as follows:

wget Http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gzwget http://subversion.tigris.org/downloads/ Subversion-deps-1.6.1.tar.gz


2. Installation and Configuration

(1) Unzip the downloaded file package, the code is as follows:

TAR-ZXVF SUBVERSION-1.6.1.TAR.GZTAR-ZXVF subversion-deps-1.6.1.tar.gz

(2) Compile the installation operation, the code is as follows:

./configure--prefix=/usr/local/svn/make && make install

(3) Configure the SVN environment variable with the following code:

echo "Export path= $PATH:/usr/local/svn/bin/" >>/etc/profilesource/etc/profile


3, the establishment of a test warehouse, the specific code is as follows:

Mkdir-p/opt/svn/svntest/svnadmin create/opt/svn/svntest/


4, modify the SVN configuration file, the operation is as follows:

Using the CD command directory/opt/svn/svntest/conf directory, you will find three files:

Svnserve.conf SVN configuration file

Authz Set User Rights profile (Note: File name can be customized, open svnserve.conf file found authz-db = Authz can be changed)

passwd set user name and password profile (Note: svnserve.conf file is found after opening password-db = passwd can be changed)

The specific code operation is as follows:

(1) Use the command vim svnserve.conf file, modify the content as follows:

[general]anon-access = noneauth-access = writepassword-db = Passwdauthz-db = Authz

(2) Use the command vim Authz file, modify the content as follows:

[svntest:/]www.yoodb.com = rw#svntest Test Warehouse increased www.yoodb.com user rights writable

(3) Use the command vim passwd file, modify the content as follows:

www.yoodb.com = 123456# Password set arbitrary, I set to 123456


5. Start the SVN server and set up the root directory with the following command:

Svnserve-d-r/opt/svn/

Check to see if the service is starting properly, with the following command:

Netstat-tunlp|grep SVN

If the results show that listening on port 3690 is OK, the boot succeeds.

Source: http://www.yoodb.com/article/display/302

Installing SVN server in CentOS version of Linux system

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.