操作系统RHEL5.X
jdk包
Python包
CollabNetSubversionEdge安装包
安装步骤
1、root用户下建立svnroot用户,及设定密码
useradd svnroot
passwd svnroot
2、root用户下安装jdk包
cp jdk-6u21-linux-i586.bin /usr/local/
cd /usr/local/
chmod u+x jdk-6u21-linux-i586.bin
./jdk-6u21-linux-i586.bin
3、编辑/etc/profile配置文件,配置Java参数
vi /etc/profile
添加内容
export JAVA_HOME=/usr/local/jdk1.6.0_21
export JAVA_BIN=/usr/local/jdk1.6.0_21/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
4、配置文件生效
source /ect/profile
5、连接java程序包
cd /usr/bin
ln -s -f /usr/local/jdk1.6.0_21/jre/bin/java
ln -s -f /usr/local/jdk1.6.0_21/bin/javac
java -version
6、安装python包
cd /media/RHEL_5.3\ i386\ DVD/Server/
rpm -Uvh python-2.4.3-24.el5.i386.rpm
7、svnroot用户下解压缩CollabNetSubversionEdge包,并修改csvn/data/conf/csvn.conf文件的RUN_AS_USER和JAVA_HOME
su – svnroot
tar zxvf CollabNetSubversionEdge-1.3.2_linux-x86.tar.gz
cd csvn/data/conf/
cp csvn.conf.dist csvn.conf
vi csvn.conf
修改
RUN_AS_USER=svnroot
JAVA_HOME=/usr/local/jdk1.6.0_21
8、切换到root用户,运行CollabNetSubversionEdge包的安装
exit
cd /home/svnroot/csvn/
sudo -E bin/csvn install
注:下面两行在设定访问路径是80端口和443端口时候要使用到
chown root:svnroot /home/svnroot/csvn/lib/httpd_bind/httpd_bind
chmod u+s /home/svnroot/csvn/lib/httpd_bind/httpd_bind
9、切换到svnroot用户,运行csvn
su – svnroot
cd csvn
bin/csvn start