1Installation Environment Preparation1.1DownloadJdkUnzip
in the installation The JDK must be installed before CSVN
Unzip and copy the downloaded jdk-8u144-linux-x64.tar.gz to the/usr/local directory .
# cp-r jdk1.8.0_144//usr/local/
1.2Configuring environment Variables
Adding environment variables
Cat >>/etc/profile << EOF
Export java_home=/usr/local/jdk1.8.0_91
Export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Eof
Make configuration effective
# Source/etc/profile
View Java version
# java-version
Java Version "1.8.0_91"
Java (TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot (TM) 64-bit Server VM (build 25.91-b14, Mixed mode)
2installationCSVN2.1UploadCsvnPackage
will be collabnetsubversionedge-5.1.4_linux-x86_64.tar.gz Package upload to server decompression
# tar XVF collabnetsubversionedge-5.1.4_linux-x86_64.tar.gz
# MV csvn//application/
Copy configuration file
# cp/application/csvn/data/conf/csvn.conf.dist/application/csvn/data/conf/csvn.conf
2.2Create a dedicated user and authorize (note:Csvncan't useRootuser-initiated)
# groups SVN # create svn Group
# useradd-g SVN svnuser # Create user Svnuserand join svn Group
# echo 123456|passwd--stdin svnuser Set password to user Svnuser
# chgrp-r svn/application/csvn/ set the CSVN directory and its subdirectories as a group of SVN
# chmod-r g+rwx/application/csvn/ set the CSVN directory group permissions for read-write execution
# chown-r Svnuser:svn/application/csvn/data The owner of the data directory is Svnuserand the group is SVN
Configure sudo permissions
Vim/etc/sudoers
Svnsuer all= (All) all
2.3installationCsvn
#/application/csvn/bin/csvn-httpd Install
Start csvn
#/APPLICATION/CSVN/BIN/CSVN Start
3Browser Login
Enter http://10.0.0.61:3343/csvn inthe browser, the default user name and password are admin,admin
4Error Handling
If startup fails, the WARNING:CSVN Console timed-out waiting for HTTP://LOCALHOST:3343/CSVN can be caused by the following two scenarios:
1)3343 port is occupied, check with netstat-anp|grep 3343, or use lsof-i:3343 to see which PID occupies the port and use Ps-ef|grep PID to see which process is
2) directory/opt/csvn/data/logs directory to Svnuser not writable, check directory properties
CSVN (CollabNet Subversion) installation configuration