tutorial on installing the SVN server under the CentOS system

Source: Internet
Author: User
Tags mkdir svn svn client centos

Subversion supports Linux and Windows, and more is installed under Linux.

SVN server has 2 modes of operation: Standalone server and Apache. Each of the 2 ways has its pros and cons.

SVN stores version data in 2 different ways: BdB and Fsfs. Because the BDB method may lock the data when the server is interrupted, it is safer to fsfs the way.

 First, download the relevant software

The code is as follows:

wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz

The code is as follows:

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

  Second, installation and configuration

1, Decompression: (To be in the same directory)

The code is as follows:

TAR-ZXVF subversion-1.6.1.tar.gz

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

2. Compile and install:

The code is as follows:

./configure--prefix=/usr/local/svn/

Make && make install

3. Add SVN related command path to environment variable

The code is as follows:

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

Source/etc/profile

  Third, the establishment of test warehouse

1, the establishment of SVN root directory

The code is as follows:

Mkdir-p/opt/svn/

2. Set up a test warehouse

The code is as follows:

Mkdir-p/opt/svn/svntest/

Svnadmin create/opt/svn/svntest/

3, modify the configuration file

There are three files in the cd/opt/svn/svntest/conf/directory:

Svnserve.conf is the SVN configuration file

Authz is a profile that sets user rights (customizable file names, specified in svnserve.conf authz-db = Authz)

PASSWD is the configuration file that sets the username and password (customizable filename, specified in svnserve.conf password-db = passwd)

The code is as follows:

VI svnserve.conf

Modified as follows:

The code is as follows:

[General]

Anon-access = None

auth-access = Write

Password-db = passwd

Authz-db = Authz

==================================================================

The code is as follows:

VI Authz

Modified as follows:

The code is as follows:

[svntest:/]

92csz.com = RW

#给svntest仓库添加一个名称为92csz. com users, permissions are writable.

==================================================================

The code is as follows:

VI passwd

Modified as follows:

92csz.com = 123456

#由于是测试, the password is set to 123456

 Iv. Installing the SVN client on the client

1, download the address:

Http://code.google.com/p/rails4scm/downloads/detail?name=tortoisewin32svn.msi

2, download complete, direct next installation can be completed after the installation needs to restart effective.

 Five, start the server and test

1. Start the SVN service and specify the root directory of SVN:

The code is as follows:

Svnserve-d-r/opt/svn/

2, check whether the service has been normal up:

The code is as follows:

NETSTAT-TUNLP | grep SVN

The results are as follows, which means the normal listening 3690 port

The code is as follows:

TCP 000.0.0.0:36900.0.0.0:* LISTEN 8646/svnserve

3, testing

Create a new directory called Svntest on the desktop, right-click on the directory, select Checkout, and fill in the first line with the IP address and warehouse name of the SVN server

After successful login, the following image (a green tick on the folder)

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.