Build a SVN (CollabNet Subversion) server using CentOS

Source: Internet
Author: User
Tags collabnet subversion collabnet

System Version: CentOS 5.6X64

# Downloading the SVN server (CollabNet Subversion)
Download CollabNet Subversion and download the latest version at this URL:
Http://www.open.collab.net/cn/downloads/subversion/redhat.html


JDK1.6 and python2.4 ~ must be installed before you install CollabNet Subversion ~ 2.6.

# JDK1.6 Installation

 
 
  1. cd/opt
  2. mvjdk-6u29-linux-x64.bin/usr/local/
  3. ./jdk-6u29-linux-x64.bin

# Setting Environment Variables

 
 
  1. cat>>/etc/profile<<EOF
  2. exportJAVA_HOME=/usr/local/jdk1.6.0_29
  3. exportCLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
  4. exportPATH=$PATH:$JAVA_HOME/bin
  5. EOF

Source/etc/profile

# View the java version
Java-version

# Python Installation
Yum-y install python

# Install and configure CollabNetSubversionEdge

 
 
  1. groupaddsvn
  2. useradd-gsvnsvnuser
  3. passwdsvnuser--->741852
  4. mkdir-p/data/develop
  5. chgrp-Rsvn/data/develop
  6. chmod-Rg+rwx/data/develop
  7. mv/opt/CollabNetSubversionEdge-2.3.0_linux-x86_64.tar.gz/data/develop/

# Add users in the svn group to the sudo Group
Vi/etc/sudoers
Find root ALL = (ALL) ALL, add svnuser ALL = (ALL) ALL to the next line, force save and exit

# Decompress the package with the svnuser user,
Su svnuser
Tar-zxvf CollabNetSubversionEdge-2.3.0_linux-x86_64.tar.gz

# Edit the cscn configuration file
Cp-r csvn/data/conf/csvn. conf. dist csvn/data/conf/csvn. conf
Vi csvn/data/conf/csvn. conf
Set: # RUN_AS_USER =
Change to: RUN_AS_USER = svnuser

Set: # JAVA_HOME =
Changed to JAVA_HOME =/usr/local/jdk1.6.0 _ 29

# Install csvn
Exit (exit the svnroot user and return to the root user)
Cd/data/develop/csvn/
Sudo-E bin/csvn install

# Start csvn
Su svnuser
Bin/csvn start // start svnt
Bin/csvn console // if bin/csvn start cannot be started properly, try this operation

After the startup is successful, the default Administrator Logon address is:
Address: http: // localhost: 3343/csvn
Username: admin
Password: admin

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.