一、介绍
Subversion Edge是Collabnet公司发布的SVN和Apache等组件结合的SVN管理工具。由于安装过subversion+apache,发现添加账户都需要登录服务器改配置,而subversionEdge有现成的web管理界面,故写此篇文章记录。
二、下载
官方地址:https://www.collab.net/downloads/subversion
下载的时候需要注册collabnet账号,这里我选择的是Linux版本:CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz
方式:wget https://downloads-guests.open.collab.net/files/documents/61/17071/CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz
JDK环境下载,这里用的JDK1.8
方式:wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz
三、安装
安装还是蛮简单的,只是需要注意的是服务要用非root用户启动,使用root用户启动会报错。
创建用户
创建用户admin,并赋予sudo权限
[[email protected]Devops01 soft]# useradd admin [[email protected]-Devops01 soft]# passwd admin [[email protected]-Devops01 soft]# vim /etc/sudoers >>>> admin ALL=(ALL) NOPASSWD:ALL <<<<
配置JDK
安装jdk,并添加到全局变量
[[email protected] soft]# tar -xf jdk-8u131-linux-x64.tar.gz [[email protected]-Devops01 soft]# mv jdk1.8.0_131 /usr/local/ [[email protected]-Devops01 soft]# cd /usr/local/ [[email protected]-Devops01 local]# ln -s jdk1.8.0_131 jdk [[email protected]-Devops01 local]# vim /etc/profile >>>> #Java_Home export JAVA_HOME=/usr/local/jdk export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH <<<< [[email protected]-Devops01 local]# source /etc/profile
安装SubversionEdge
切换到admin账号,创建新目录放置subversonedge
[[email protected] ~]$ mkdir opt && cd opt [[email protected]-Devops01 opt]$ tar -xvf CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz [[email protected]-Devops01 opt]$ cd csvn [[email protected]-Devops01 csvn]$ sudo chown root:admin /home/admin/opt/csvn/lib/httpd_bind/httpd_bind [[email protected]-Devops01 csvn]$ sudo chmod u+s /home/admin/opt/csvn/lib/httpd_bind/httpd_bind [[email protected]-Devops01 csvn]$ sudo bin/csvn-httpd install Detected RHEL or Fedora: Installing the Subversion Edge Apache Server daemon.. [[email protected]-Devops01 csvn]$ sudo -E bin/csvn install Detected RHEL or Fedora: Installing the CSVN Console daemon.. Setting RUN_AS_USER to: ‘admin‘. Please edit ‘../data/conf/csvn.conf‘ if this needs to be adjusted Setting JAVA_HOME to: ‘/usr/local/jdk‘. Please edit ‘../data/conf/csvn.conf‘ if this needs to be adjusted
配置管理
访问http://<IP>:4434/,账号密码admin/admin
安装导航提示进行修改,配置如下
创建项目
关于权限,默认创建完项目,此项目为全局可读写;
基本权限配置如下,详细参考:http://help.collab.net/index.jsp?topic=/csvn/action/controlrepositoryaccess.html
浏览器访问
浏览器直接访问项目如下,其他例如subversion client配置照常即可。