`

linux上svn服务器部署

 
阅读更多
yum install svn /subversion

vi /etc/init.d/svnserve

#! /bin/sh
#
# chkconfig: - 55 45
# description: The svnserved daemon is a network memory cache service.
# processname: svnserve
# config: /etc/sysconfig/svnserve
# pidfile: /var/run/svnserve.pid

# Standard LSB functions
#. /lib/lsb/init-functions

# Source function library.
. /etc/init.d/functions

ROOT=/repos
PORT=1030
CONF=/repos/.authz/svnserve.conf

if [ -f /etc/sysconfig/svnserve ];then
. /etc/sysconfig/svnserve
fi

# Check that networking is up.
. /etc/sysconfig/network

if [ "$NETWORKING" = "no" ]
then
exit 0
fi

RETVAL=0
prog="svnserve"

start () {
echo -n $"Starting $prog: "

daemon --pidfile /var/run/svnserve.pid svnserve -d -r $ROOT --listen-port $PORT --config-file $CONF --pid-file /var/run/svnserve.pid
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/svnserve
}
stop () {
echo -n $"Stopping $prog: "
killproc -p /var/run/svnserve.pid /usr/bin/svnserve
RETVAL=$?
echo
if [ $RETVAL -eq 0 ] ; then
rm -f /var/lock/subsys/svnserve
rm -f /var/run/svnserve.pid
fi
}

restart () {
stop
start
}


# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status svnserve
;;
restart|reload|force-reload)
restart
;;
condrestart)
[ -f /var/lock/subsys/svnserve ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
exit 1
esac

exit $?

mkdir/repos/.authz/

vi/repos/.authz/svnserve.conf

### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd.db
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file. If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz.db
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
realm = CmsTop Repository

[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256

vi/repos/.authz/passwd.db

[users]
root=123123
micate=123123

vi/repos/.authz/authz.db

[groups]
super=root
dev=micate

[/]
* = r
@super = rw
分享到:
评论

相关推荐

    centos 7.9服务器 离线 搭建svn服务器

    centos 7.9服务器 离线 搭建svn服务器 ,该文章适用于 开发人员 实施人员 项目经理用于项目文档管理 代码管理,而不指定如何在centos7.9环境下离线搭建svn服务器,因为大多数的网站只是介绍yum install 的方式,但是...

    linux下服务器环境部署(apache_svn_tomcat_maven)

    linux下服务器环境部署(apache_svn_tomcat_maven)

    Linux应用篇之centos7部署svn.docx

    除了重新部署svn服务外,还需要将接近600G的代码数据无缝迁移到新的svn服务器上,且代码路径及url未发生任何改变,之前的账号密码过于简单,这一次也需要重新整改!目前公司的代码Project有90多个,所以需要通过统一...

    linux+svn+apache安装配置部署

    1、独立安装subverison,使用客户端链接svn配置, 2、使用apache和svn结合,部署svn服务器

    项目运行_服务器部署_SVN_Linux_Windows[整理].pdf

    项目运行_服务器部署_SVN_Linux_Windows[整理].pdf

    Linux下搭建SVN服务器遇到的问题及解决方法

    1、checkout时,提示:URL svn://IP/svntest doesn't exist…  奇怪,怎么会提示库不存在呢?肯定是哪里配置问题。后来尝试了半天,也在网上搜索了很久,终于发现问题所在。  如果你的svn库的路径为:/home/svn/...

    Linux服务器配置多个svn仓库流程详解

    1、在指定目录建立仓库保存总目录,本文示例目录设定为:/usr/local/svn/svnrepos # mkdir -p /usr/local/svn/svnrepos 2、在总目录中创建两个仓库的文件夹,以及使用命令创建版本库 # mkdir -p /usr/local/svn/...

    SVN高级视频教程

    本教程是在上一版基础上的升级,改进点包括:在Linux系统部署SVN服务器程序、更丰富的命令行操作、Eclipse特定文件全局忽略、分支管理、不通过Eclipse插件单纯使用TortoiseSVN上传Eclipse工程等等。

    javaWeb项目服务器部署全部内容

    本文档包含javaweb项目在Linux服务器上部署的全部配置能容,包含java环境和.sh启动方式、mysql数据库和操作指令等一系列问题、nginx和多域名、svn部署、Linux环境部署常见问题等内容.

    spring boot 集成 svn 集成 jenkins 实现自动化部署

    3.jenkins从SVN上把源代码download下来 4.jenkins根据你设置的mvn命令进行打包 5.jenkins把你打包的好的可执行jar工程通过SSHserver传输到服务器工作目录下 6.自动执行shell脚本启动项目 对于程序员而言,...

    centos svn 搭建教程

    svn可以不仅可以帮助我们记录历史代码,还可以用于团队开发。而centos是linux系统的主流。为大家献上centos下部署svn服务器的教程,并附上svn服务端和客户端(小乌龟)的安装包,希望可以帮助大家。

    CollabNetSubversionEdge-5.2.3_linux-x86_64.tar.gz

    首先说CSVN,其实可以简单理解为SVN+Apache的集成版本,当然CSVN还有其他的一些特性(角色的用户管理,灵活的角色和权限配置以及LDAP认证,基于角色的多仓库管理,自动备份、恢复,以及模板和Rest APIs管理),可以...

    部署项目-JDeploy-master.zip

    JDeploy是Java + Shell实现的基于Linux系统的自动化、可视化的项目部署平台,能部署Java服务、Java Web项目,可以简化项目部署操作,无需繁琐的黑窗口SSH指令及Jenkins复杂的配置,傻瓜式操作,只需要提供SVN/GIT...

    svn版本 升级打包工具

    此工具适合用svn管理的java代码升级版本管理,本人用的是weblogic服务器,在linux下部署,能节省开发人员整理升级清单和打版本的工作;本工具使用javaswing开发,已经内嵌jdk,不需要再安装jdk;跨平台,免安装,...

    CentOS6.5下安装SVN

    SVN作为新一代代码版本管理工具,有很多优点,管理方便,逻辑明确,安全性高,...SVN的运行方式也有两种,一种是独立服务器,另一种是借助apache服务,各有利弊,下面就介绍一下这两种方式各自在centos下的部署步骤。

    ARM架构aarch64操作系统项目部署资源整合

    给政府部署一个java项目,使用的ARM架构arrch64的操作系统。又是内网不能yum,于是只能自己找了各种tar包。包含c++标准库、mysql、java、redis、还有地理信息系统使用的geoserver。 内含自己写的资源整合说明和各...

    SVN操作手册中文版网页格式

    目录 译者序 前言 序言 读者 怎样阅读本书 本书约定 排版习惯 图标 本书组织结构 Subversion 1.1的新特性,svn客户端和linux下命令行。 目录 1. 简介 1.1. 什么是 TortoiseSVN? 1.2. TortoiseSVN 的历史 1.3. ...

    通俗易懂的SVN高级教程(含配套资料)

    本教程是在上一版基础上的升级,改进点包括:在Linux系统部署SVN服务器程序、更丰富的命令行操作、Eclipse特定文件全局忽略、分支管理、不通过Eclipse插件单纯使用TortoiseSVN上传Eclipse工程等等。

    java war包+tomcat+svn+pom.xml实现各开发环境自动化部署

    1.yum安装svn (注意防火墙开发端口号,如果是 云服务器,需要添加安全组开发端口号) 2.创建svn资源仓库 3.有以下几个配置文件 conf db format hooks locks README.txt 4.启动 查看状态 停止 5.克隆 更新 查看 等 第二...

Global site tag (gtag.js) - Google Analytics