Home  >  Article  >  System Tutorial  >  How to deploy CSVN server on CentOS6.7

How to deploy CSVN server on CentOS6.7

PHPz
PHPzforward
2024-04-14 09:43:23415browse

How to deploy CSVN server on CentOS6.7

Server required components: Minimum installation is acceptable (personal test), additional required components: jdk-8u91-linux-x64.gz, CollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gzCollabNetSubversionEdge-5.1.4_linux-x86_64.tar .gzCollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gz

step1: Upload these two software packages to the /opt directory of the server and install jdk1.8
tar zxvf jdk-8u91-linux-x64.gz
mv jdk1.8.0_91/ /usr/local/
vi /etc/profile
####添加如下三行
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
source /etc/profile
java -version   ##查看java版本已经是1.8
step2:Install csvn
tar xvf CollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gz
mkdir /application
mv csvn/ /application/
useradd csvn
passwd csvn
chown -R  csvn:csvn /application/
vim /etc/sudoers
####添加下面一行使csvn可以使用sudo
csvn    ALL=(ALL)   ALL
ln -s /application/csvn/bin/csvn /etc/csvn
ln -s /application/csvn-httpd /etc/csvn-httpd
step3: Start the service: csvn csvn-httpd
service csvn start
service csvn-httpd start

The above is the detailed content of How to deploy CSVN server on CentOS6.7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete