UID811
现金0
在线时间0 小时
注册时间2018-11-18
黑狼菜鸟
- 积分
- 0
|
svnadmin是一个Java开辟的管理svn服务器的项目用户的web应用。安装好svn服务器端把svnadmin.war摆设至tomcat,就可以通过web欣赏器管理svn的项目,用户以及目次权限,使得管理设置svn轻便,之后不必要每次都到服务器上手工修改设置文件。下面详细报告一下如安在Linux体系下搭建svnadmin服务,借助于nginx,tomcat等服务。
安装MySQL,JDK,Tomcat,Nginx
安装Mysql — http://blog.yoodb.com/yoodb/article/detail/1517
安装JDK — http://blog.yoodb.com/yoodb/article/detail/209
安装Tomcat,Nginx — http://blog.yoodb.com/nikolatesla/article/detail/1439
1、安装httpd服务
1)安装apache下令yum install httpd -y
2)安装完成后可以通过如下下令检察是否安装乐成,下令httpd -version
[root@ecs-5a8d-0001 /]# httpd -versionServer version: Apache/2.4.6 (CentOS)Server built: Nov 5 2018 01:47:09
3)修改httpd服务端标语
...# Change this to Listen on specific IP addresses as shown below to# prevent Apache from glomming onto all bound IP addresses.##Listen 12.34.56.78:80Listen 83## Dynamic Shared Object (DSO) Support...
4)httpd服务启动下令
[root@ecs-5a8d-0001 svn]# /bin/systemctl start httpd.service
5)检察是否启动乐成(访问) http://ip:port/
能打开页面表现“Testing 123... ”,表现httpd服务启动乐成了。
2、安装svn模子
1)在安装svn模子之前先关掉httpd服务:
[root@ecs-5a8d-0001 svn]# /bin/systemctl stop httpd.service
2)安装svn模子下令yum install mod_dav_svn subversion -y
3)检察svn模子是否安装下令svnserve --version
[root@ecs-5a8d-0001 /]# svnserve --versionsvnserve, version 1.7.14 (r1542130) compiled Apr 11 2018, 02:40:28Copyright (C) 2013 The Apache Software Foundation.This software consists of contributions made by many people; see the NOTICEfile for more information.Subversion is open source software, see http://subversion.apache.org/The following repository back-end (FS) modules are available:* fs_base : Module for working with a Berkeley DB repository.* fs_fs : Module for working with a plain file (FSFS) repository.Cyrus SASL authentication is available.
4)检察是否多出两个模子文件下令ls /etc/httpd/modules/ | grep svn
[root@ecs-5a8d-0001 /]# ls /etc/httpd/modules/ | grep svnmod_authz_svn.somod_dav_svn.so
5)创建svn堆栈主目次,并建根目次软毗连
[root@ecs-5a8d-0001 svn]# mkdir -p /home/yoodb/svn[root@ecs-5a8d-0001 svn]# ln -s /home/yoodb/svn /
6)创建subversion.conf
[root@ecs-5a8d-0001 svn]# vi /etc/httpd/conf.d/subversion.conf增长如下内容:
DAV svn SVNListParentPath on SVNParentPath /svn AuthType Basic AuthName "Subversion repositories" AuthUserFile /svn/passwd.http AuthzSVNAccessFile /svn/authz Require valid-userRedirectMatch ^(/svn)$ $1/
3、安装svnadmin
svnadmin下载地点 — http://jsvnadmin.googlecode.com/files/svnadmin-3.0.5.zip ,解压后有svnadmin.war和db数据库文件
1)修改tomcat端标语和字符编码(否则svn页面操纵无法输入中文),下令vi /home/yoodb/svnadmin/conf/server.xml, URIEncoding="UTF-8"
[root@ecs-5a8d-0001 svn]# vi /home/yoodb/svnadmin/conf/server.xml... Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 --> |
上一篇:轻松加舒畅的Kubernetes安装教程下一篇:LAMP之安装PHP(一)
|