系统相关
首页 > 系统相关> > centos 7 安装csvn

centos 7 安装csvn

作者:互联网

一.环境介绍

1.centos 7
2.Java1.8.0_211

二.Java环境配置

1.先在网上找jdk包和csvn包

2. 先ls查看一下你有没有这两个包

3.[root@localhost soft]# tar xf jdk-8u211-linux-x64.tar.gz -C /usr/local/

4.[root@localhost soft]# cd /usr/local/

5.[root@localhost local]# mv jdk1.8.0_211/ java/

6.[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
centos 7 安装csvn

7.[root@localhost local]# source /etc/profile

8.[root@localhost local]# java -version # 查看java版本;
centos 7 安装csvn

三.创建CSVN用户

[root@localhost ~]# useradd -m csvn

[root@localhost ~]# passwd csvn

四.部署CSVN

1.[root@localhost soft]# mkdir /data # 创建csvn家目录

2.[root@localhost soft]# tar xf CollabNetSubversionEdge-4.0.11_linux-x86_64.tar.gz -C /data/ # 解压csvn源码包

3.[root@localhost soft]# cd /data/

4.[root@localhost data]# ls
csvn
centos 7 安装csvn

5.[root@localhost data]# chown -R csvn.csvn csvn

6.[root@localhost data]# vim /etc/sudoers

98 root ALL=(ALL) ALL
99 csvn ALL=(ALL) ALL
centos 7 安装csvn
7.[root@localhost data]# su csvn

8.[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.
centos 7 安装csvn

查看生成的文件
[csvn@localhost data]$ vim csvn/data/conf/csvn.conf (在/data下面)
9 RUN_AS_USER=csvn
46 JAVA_REQUIRED=true
47 JAVA_REQUIRED_VERSION=1.6
48 JAVA_HOME=/usr/local/java

五.启动CSVN

csvn/bin/csvn start

centos 7 安装csvn

六.在浏览器上输入http://IP地址加端口号和csvn

  默认用户名和密码都是admin

centos 7 安装csvn

 点启动

     再点版本库

centos 7 安装csvn

点创建(名字随便起)

centos 7 安装csvn

随便勾一个文件,然后点Download
centos 7 安装csvn

再点创建

再点浏览
就可以上传下载了

centos 7 安装csvncentos 7 安装csvn

标签:csvn,JAVA,centos,安装,local,data,root,localhost
来源: https://blog.51cto.com/14259161/2426928