安装CollabNet Subversion时首先需要安装依赖JDK和python
1、安装jdk,如果未配置yum源,请自行配置
[root@ding100 html]# yum -y install java
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
root@ding100 html]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
2、安装python运行环境
root@ding100 html]# yum -y install python
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package python-2.7.5-88.el7.x86_64 already installed and latest version
3、添加svn系统用户
[root@ding100 opt]# useradd svn #添加用户
4、配置系统权限,打开/etc/sudoers文件,找到root ALL=(ALL) ALL,加入svn ALL=(ALL) ALL
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
svn ALL=(ALL) ALL
[root@ding100 opt]$ ls csvn/data/conf/csvn.conf.dist
[root@ding100 opt]$ cp csvn/data/conf/csvn.conf.dist csvn/data/conf/csvn.conf
执行命令:cd /opt/subversion/csvn
sudo -E bin/csvn install
[root@ding100 opt]$ sudo -E bin/csvn-httpd install
[root@ding100 opt]$ service csvn start