源码安装CSVN
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了源码安装CSVN相关的知识,希望对你有一定的参考价值。
一.环境介绍 1.centos7
2.Java1.8.0_211
二.Java环境配置
[[email protected] soft]# ls
CollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gz
jdk-8u211-linux-x64.tar.gz
[[email protected] soft]# tar xf jdk-8u211-linux-x64.tar.gz -C /usr/local/
[[email protected] soft]# cd /usr/local/
[[email protected] local]# mv jdk1.8.0_211/ java/
[[email protected] local]# vim /etc/profile # 末尾添加三行(java环境变量);
export JAVA_HOME=/usr/local/java
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
[[email protected] local]# source /etc/profile # 声明全局变量;
[[email protected] local]# java -version # 查看java版本;
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
三.创建CSVN用户
[[email protected] ~]# useradd -m csvn
[[email protected] ~]# passwd csvn
四.部署CSVN
[[email protected] soft]# mkdir /data # 创建csvn家目录
[[email protected] soft]# tar xf CollabNetSubversionEdge-4.0.11_linux-x86_64.tar.gz -C /data/ # 解压csvn源码包
[[email protected] soft]# cd /data/
[[email protected] data]# ls
csvn
[[email protected] data]# chown -R csvn.csvn csvn # *** csvn运行用户不能是root,所以csvn文件夹的属主和属组要修改为csvn;
[[email protected] data]# vim /etc/sudoers # 赋予csvn用户超户的权限,以便创建;
98 root ALL=(ALL) ALL
99 csvn ALL=(ALL) ALL # *****
[[email protected] data]# su csvn
[[email protected] ~]$ sudo -E /data/csvn/bin/csvn install
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for csvn:
Detected RHEL or Fedora:
Installing the CSVN Console daemon..
Setting RUN_AS_USER to: ‘csvn‘. Please edit ‘../data/conf/csvn.conf‘ if this needs to be adjusted
Setting JAVA_HOME to: ‘/usr/local/java‘. Please edit ‘../data/conf/csvn.conf‘ if this needs to be adjusted.
查看生成的文件
[c[email protected] data]$ vim csvn/data/conf/csvn.conf
9 RUN_AS_USER=csvn # 运行用户 csvn
46 JAVA_REQUIRED=true
47 JAVA_REQUIRED_VERSION=1.6
48 JAVA_HOME=/usr/local/java
五.启动CSVN
csvn/bin/csvn start
Starting CSVN Console...
...
CSVN Console started
Waiting for application to initialize (this may take a minute)....................................................................................
CSVN Console is ready at http://localhost:3343/csvn
浏览器输入IP地址加端口号和csvn
以上是关于源码安装CSVN的主要内容,如果未能解决你的问题,请参考以下文章