[Linux]Centos7下配置SubversionEdge

参考地址

http://www.cnblogs.com/zz0412/p/install_Subversion_edge_4-0-1.html
http://blog.163.com/kongmingyfm@126/blog/static/6748682720094554426857/

下载地址

https://www.collab.net/downloads/subversion

确定是否配置Java环境

java -version

没有安装可参考
http://www.jianshu.com/p/4aeba910cd7d

配置是否安装Python

//ctrl+d退出交互模式
python
[Linux]Centos7下配置SubversionEdge_第1张图片
Paste_Image.png
mv /home/tong/公共/CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz  /home/tong

解压文件

su tong
tar xf /home/tong/CollabNetSubversionEdge-5.2.0_linux-x86_64.tar.gz -C /home/tong

配置csvn使用1-1023端口的权限[可选]

sudo -s
chown root:tong /home/tong/csvn/lib/httpd_bind/httpd_bind
chmod u+s /home/tong/csvn/lib/httpd_bind/httpd_bind

配置开机启动

cd /home/tong/csvn/
su tong
sudo bin/csvn-httpd install
sudo -E bin/csvn install

如果提示

Detected RHEL or Fedora:
Installing the CSVN Console daemon..
Setting RUN_AS_USER to: 'tong'. Please edit '../data/conf/csvn.conf' if this needs to be adjusted
Setting JAVA_HOME to: ''. Please edit '../data/conf/csvn.conf' if this needs to be adjusted.
vi /etc/profile

复制JVVA_HOME的路径

Paste_Image.png

修改

vi data/conf/csvn.conf

注意是""
注意查看路径是否正确


Paste_Image.png

重新执行

Paste_Image.png

关闭防火墙

systemctl stop firewalld.service

开启服务

cd bin
sh csvn start

#如果使用start启动失败,可以使用下面的命令
sh csvn console  #此命令会在控制台输出启动日志,便于确定是什么错误导致启动失败
Paste_Image.png
如果出现WARNING: CSVN Console timed-out waiting for
ps aux |grep 3343
killall -9 xxx  //杀死该进程

或者

find / -name '*csvn*'
删除
~~
  
  

####http://localhost:3343/csvn
####如果是在其他机器上访问,记得把localhost换成ip


##配置Subversion edge

####登陆(默认用户名admin、密码admin)
![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-3df848f199c313c9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


####修改管理员密码

![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-3b793760dd0a36f2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1040)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-0d3d03af5fb43f83.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1040)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-27ca0cf633c0d31f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-5662c3353d6c2915.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/540)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-8ce508535a9368ce.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-6b1e5c528986a97f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-971d298ede02dba2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-fb374d037a61a64e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-7aa76f357e8ef2d3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


![Paste_Image.png](http://upload-images.jianshu.io/upload_images/2953340-70c1f8cd2b6cbac3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)


##版本库访问规则

[groups]
android=chenxuetong
ios=liucheng

[/]
*=r

[androidRepo:/]
@android=rw
@ios=rw
*=r

你可能感兴趣的:([Linux]Centos7下配置SubversionEdge)