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
- cd/opt
- mvjdk-6u29-linux-x64.bin/usr/local/
- ./jdk-6u29-linux-x64.bin
# Setting Environment Variables
- cat>>/etc/profile<<EOF
- exportJAVA_HOME=/usr/local/jdk1.6.0_29
- exportCLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
- exportPATH=$PATH:$JAVA_HOME/bin
- EOF
Source/etc/profile
# View the java version
Java-version
# Python Installation
Yum-y install python
# Install and configure CollabNetSubversionEdge
- groupaddsvn
- useradd-gsvnsvnuser
- passwdsvnuser--->741852
- mkdir-p/data/develop
- chgrp-Rsvn/data/develop
- chmod-Rg+rwx/data/develop
- 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