介绍
Subversion Edge是Collabnet公司发布的SVN和Apache等组件结合的SVN管理工具。由于安装过subversion+apache,发现添加账户都需要登录服务器改配置,而subversionEdge有现成的web管理界面,界面更人性化,便于管理维护。
下载
- Subversion Edge官方地址:
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
安装
- 创建用户admin,并赋予sudo权限
useradd admin
passwd admin
vim /etc/sudoers
>>>>
admin ALL=(ALL) NOPASSWD:ALL
<<<<
- 配置JDK
tar -xf jdk-8u131-linux-x64.tar.gz
mv jdk1.8.0_131 /usr/local/
cd /usr/local/
ln -s jdk1.8.0_131 jdk
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
<<<<
source /etc/profile
- 切换到admin账号,创建新目录放置subversonedge
mkdir opt && cd opt
tar -xvf CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz
cd csvn
sudo chown root:admin /home/admin/opt/csvn/lib/httpd_bind/httpd_bind
sudo chmod u+s /home/admin/opt/csvn/lib/httpd_bind/httpd_bind
sudo bin/csvn-httpd install
Detected RHEL or Fedora:
Installing the Subversion Edge Apache Server daemon..
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
- 服务启动
cd ./bin
./csvn start
Starting CSVN Console...
...
CSVN Console started
Waiting for application to initialize (this may take a minute)............................
配置管理
- 访问
https://<IP>:4434/
,账号密码admin/admin
-
按照导航提示进行修改,配置如下
-
项目创建流程
-
关于权限,默认创建完项目,此项目为全局可读写
- 基本权限配置如下,详细参考:
http://help.collab.net/index.jsp?topic=/csvn/action/controlrepositoryaccess.html
测试
-
浏览器直接访问项目如下
网友评论