centos 7 安装csvn
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
7.[root@localhost local]# source /etc/profile
8.[root@localhost local]# java -version # 查看java版本;
三.创建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
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
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.
查看生成的文件
[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
六.在浏览器上输入http://IP地址加端口号和csvn
默认用户名和密码都是admin
点启动
再点版本库
点创建(名字随便起)
随便勾一个文件,然后点Download
再点创建
再点浏览
就可以上传下载了
以上是关于centos 7 安装csvn的主要内容,如果未能解决你的问题,请参考以下文章