Install and configure SVN servers in CentOS 5.2

Source: Internet
Author: User
Tags svn client

After installing the SVN server, this article is not integrated with Apache. The process is as follows:

1. Download related software:

[Root @ youxia201 test] # wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz

[Root @ youxia201 test] # wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.gz

Ii. installation and configuration:

1. decompress the package in the same directory:

[Root @ youxia201 opt] # tar-zxvf subversion-1.6.1.tar.gz

[Root @ youxia201 opt] # tar-zxvf subversion-deps-1.6.1.tar.gz

2. Compilation and installation:

[Root @ youxia201 subversion-1.6.1] #./configure -- prefix =/usr/local/svn/

[Root @ youxia201 subversion-1.6.1] # make & make install

3. Add svn-related commands to environment variables:

[Root @ youxia201 subversion-1.6.1] # echo "export PATH = $ PATH:/usr/local/svn/bin/">/etc/profile

[Root @ youxia201 subversion-1.6.1] # source/etc/profile

[Root @ youxia201 subversion-1.6.1] # svn

Svn svnadmin svndumpfilter svnlook svnserve svnsync svnversion

3. Create a test warehouse:

1. Create the SVN root directory. The R & D center has multiple project departments:

[Root @ youxia201 subversion-1.6.1] # mkdir-p/opt/svn/

2. Create a test warehouse:

[Root @ yoia201 subversion-1.6.1] # mkdir-p/opt/svn/svntest/

[Root @ youxia201 subversion-1.6.1] # svnadmin create/opt/svn/svntest/

3. modify the configuration file:

[Root @ youxia201 svntest] # cd/opt/svn/svntest/conf/

[Root @ youxia201 conf] # ll

Total 24

-Rw-r -- 1 root 710 08-25 authz

-Rw-r -- 1 root 325 08-25 passwd

-Rw-r -- 1 root 1449 08-25 09:36 svnserve. conf

[Root @ youxia201 conf] # vi svnserve. conf

[General]

Anon-access = none

Auth-access = write

Password-db = passwd

Authz-db = authz

[Root @ youxia201 conf] # vi authz

[Svntest:/]

Lipeng = rw

# Add a user named Li Peng to the svntest repository with the write permission.

[Root @ youxia201 conf] # vi passwd

Lipeng = 123456

# Because it is a test, set the password to 123456

4. Install the svn client on Windows XP:

1 ,:

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

2. After the download is complete, directly install the tool next. After the installation is complete, restart the tool to take effect.

V. Start server and test:

1. Enable the SVN service and specify the SVN root directory:

[Root @ youxia201 test] # svnserve-d-r/opt/svn/

2. The Service is working properly:

[Root @ youxia201 test] # netstat-tunlp | grep svn

Tcp 0 0 0.0.0.0: 3690 0.0.0.0: * LISTEN 8646/svnserve

3. test:

Create a directory named svntest on the desktop, right-click the directory, select Checkout, and enter the svn Server IP address and repository name in the first line.

Enter the user name and password.

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.