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
- cd /opt
- mv jdk-6u29-linux-x64.bin /usr/local/
- ./jdk-6u29-linux-x64.bin
# Setting environment variables
- cat >>/etc/profile<
- export JAVA_HOME=/usr/local/jdk1.6.0_29
- export CLASS_PATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
- export PATH=$PATH:$JAVA_HOME/bin
- EOF
Source/etc/profile
# View the java version
Java-version
# Python installation
Yum-y install python
# Install and configure CollabNetSubversionEdge
- groupadd svn
- useradd -g svn svnuser
- passwd svnuser ---> 741852
- mkdir -p /data/develop
- chgrp -R svn /data/develop
- chmod -R g+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