码迷,mamicode.com
首页 > 其他好文 > 详细

源码安装CSVN

时间:2019-07-16 11:10:01      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:部署   runtime   java版本   java环境配置   oca   pass   运行   etc   添加   

一.环境介绍
 1.centos7
 2.Java1.8.0_211

二.Java环境配置

[root@localhost soft]# ls
CollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gz 
jdk-8u211-linux-x64.tar.gz 
[root@localhost soft]# tar xf jdk-8u211-linux-x64.tar.gz  -C /usr/local/
[root@localhost soft]# cd /usr/local/
[root@localhost local]# mv jdk1.8.0_211/ java/
[root@localhost 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
[root@localhost local]# source /etc/profile     # 声明全局变量;
[root@localhost 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用户

[root@localhost ~]# useradd -m csvn
[root@localhost ~]# passwd csvn

四.部署CSVN

[root@localhost soft]# mkdir /data              # 创建csvn家目录
[root@localhost soft]# tar xf CollabNetSubversionEdge-4.0.11_linux-x86_64.tar.gz -C /data/    # 解压csvn源码包
[root@localhost soft]# cd /data/
[root@localhost data]# ls
csvn
[root@localhost data]# chown -R csvn.csvn csvn  # *** csvn运行用户不能是root,所以csvn文件夹的属主和属组要修改为csvn;
[root@localhost data]# vim /etc/sudoers         # 赋予csvn用户超户的权限,以便创建;

98 root    ALL=(ALL)       ALL
99 csvn    ALL=(ALL)       ALL              # *****
[root@localhost data]# su csvn
[csvn@localhost ~]$ 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.

查看生成的文件
[csvn@localhost 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

标签:部署   runtime   java版本   java环境配置   oca   pass   运行   etc   添加   

原文地址:https://blog.51cto.com/14359196/2420549

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!