Build a SVN (CollabNetSubversion) server using CentOS

Source: Internet
Author: User
Tags collabnet subversion collabnet
System version: CentOS5.6X64 # download the latest version of CollabNetSubversion from the SVN server (CollabNetSubversion). download the latest version at http://www.open.collab.net/cn/downloads/subversion/redhat.htmlto install collab.

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. mv jdk-6u29-linux-x64.bin /usr/local/  
  3. ./jdk-6u29-linux-x64.bin 

# Setting environment variables

 
 
  1. cat >>/etc/profile<
  2. export JAVA_HOME=/usr/local/jdk1.6.0_29 
  3. export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib  
  4. export PATH=$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. groupadd svn  
  2. useradd -g svn svnuser  
  3. passwd svnuser    --->  741852  
  4. mkdir -p /data/develop  
  5. chgrp -R svn /data/develop  
  6. chmod -R g+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

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.