Install LinuxSVN (non-Apache)

Source: Internet
Author: User
Tags svn client
Linux installed SVN server, this article is not integrated with Apache, the process is as follows: 1, download the relevant software: [root@www.linuxidc.comtest] # wgethttp: // subversion.tigris.org/downloads/subversion-1.6.1.tar.gz?root@www.linuxidc.c


The SVN server is installed in Linux. This article is not integrated with Apache. The process is as follows:

1. download related software:

Root@www.linuxidc.com test # wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.gz

Root@www.linuxidc.com 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@www.linuxidc.com opt # tar-zxvf subversion-1.6.1.tar.gz

Root@www.linuxidc.com opt # tar-zxvf subversion-deps-1.6.1.tar.gz

2. compilation and installation:

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

[Root@www.linuxidc.com subversion-1.6.1] # make & make install

3. add svn-related commands to environment variables:

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

[Root@www.linuxidc.com subversion-1.6.1] # source/etc/profile

[Root@www.linuxidc.com 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@www.linuxidc.com subversion-1.6.1] # mkdir-p/opt/svn/

2. create a test warehouse:

[Root@www.linuxidc.com subversion-1.6.1] # mkdir-p/opt/svn/svntest/

[Root@www.linuxidc.com subversion-1.6.1] # svnadmin create/opt/svn/svntest/

3. modify the configuration file:

[Root@www.linuxidc.com svntest] # cd/opt/svn/svntest/conf/

[Root@www.linuxidc.com 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@www.linuxidc.com conf] # vi svnserve. conf

[General]

Anon-access = none

Auth-access = write

Password-db = passwd

Authz-db = authz

[Root@www.linuxidc.com conf] # vi authz

[Svntest:/]

Lipeng = rw

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

[Root@www.linuxidc.com 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@www.linuxidc.com test] # svnserve-d-r/opt/svn/

2. the service is working properly:

# 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.

 

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.