centOS6.4 部署SVN

2024-06-23 08:48
文章标签 centos6.4 svn 部署

本文主要是介绍centOS6.4 部署SVN,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

因工作需要,需要准备一台svn,开了几个帖子,有一点不尽人意,刚部署完,共享一份资料。

1、安装


[root@localhost ~]# yum install httpd mod_dav_svn subversion mod_ssl mod_authz_svn.so -y

这里可以直接 yum install httpd* subversion* mod_dav_svn* mod_authz_svn* -y


2、创建代码库

[root@localhost ~]# mkdir /svn/splunk
[root@localhost ~]# svnadmin create /svn/splunk
查看/svn/splunk/下,是否生成conf, db,format,hooks, locks, README.txt等文件,说明一个SVN库已经建立。


3、配置svn

[root@localhost ~]# cd /svn/splunk/conf/
[root@localhost conf]# ls
   authz  passwd  svnserve.conf
(1)访问权限控制
[root@localhost conf]# vim authz 
#配置组
[groups]
#可以创建一个test,组里包含user1和user2
#test = user1,user2


#配置访问控制
[/]
#可以设置组的权限如@test代表组权限,也可以单独配置用户
@test = rw
user1 = rw


(2)svn主配置文件  
第8  13  20   27  32行去掉注释,顶行。
[root@localhost conf]# vim svnserve.conf 
[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 = read
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
### 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
### 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 = /svn/splunk


4、配置httpd
[root@localhost conf]# cd /etc/httpd/conf.d/
[root@localhost conf.d]# vim subversion.conf 


还配置文件低端添加,根据实际情况修改/svn/目录
<Location /svn>
DAV svn
SVNParentPath /svn/
AuthType Basic
AuthName "svn"
AuthUserFile /svn/splunk/conf/passwd
AuthzSVNAccessFile /svn/splunk/conf/authz
Require valid-user
</Location>


5、创建apache用户
因为svn通过httpd发出去,所有需要用apache用户登录


第一次创建账号
[root@localhost conf.d]# htpasswd -c /svn/splunk/conf/passwd user1
以后创建账号
[root@localhost conf.d]# htpasswd /svn/splunk/conf/passwd user2


创建完用户后记得在 3-(1)中给用户赋权。


6、启动服务
启动svn
[root@localhost conf.d]# service svnserve start
启动httpd
[root@localhost conf.d]# service httpd start

加入开机启动
[root@localhost conf.d]# chkconfig svnserve on
[root@localhost conf.d]# chkconfig httpd on


因为内网环境中iptables是关闭的,不考虑端口问题,如果开着的话,记的开端口。
[root@localhost conf.d]# iptables -I INPUT -p tcp --dport 3690 -j ACCEPT




有可能碰到的问题
Error: Can’t open ‘/home/svn/db/txn-current-lock’:拒绝访问


解决方法
给svn根目录赋权
[root@localhost conf.d]#chmod –R o+rw /svn/splunk/


在浏览器
http://svn服务器ip/svn/splunk/   输入用户名密码就可以了

这篇关于centOS6.4 部署SVN的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1086689

相关文章

UnrealScriptIDE调试环境部署

先安装vs2010   再安装VSIsoShell.exe, 下载地址 https://pan.baidu.com/s/10kPNUuDGTbWXbz7Nos-1WA       fd3t   最后安装unside,下载地址 https://archive.codeplex.com/?p=uside  安装中间有一步选择Binary文件夹要选对路径。   安装好以后,启动 UDKDe

WIN8重置Eclipse的SVN帐号密码

将C:\Users\用户名\AppData\Roaming\Subversion\auth\svn.simple目录下的文件删除,然后在Eclipse里面就需要重新输入帐号密码了。

青龙面板部署通用教程,含服务器、路由器、X86等部署方法

1. 拉取镜像/更新镜像 docker pull whyour/qinglong:latest 2. 删除镜像 docker rmi whyour/qinglong:latest 3. 启动容器 普通服务器 docker run -dit \-v $PWD/ql/config:/ql/config \-v $PWD/ql/log:/ql/log \-v $PWD/ql/db:

宝塔面板部署青龙面板教程【简单易上手】

首先,你得有一台部署了宝塔面板的服务器(自己用本地电脑也可以)。 宝塔面板部署自行百度一下,很简单,这里就不走流程了,官网版本就可以,无需开心版。 首先,打开宝塔面板的软件商店,找到下图这个软件(Docker管理器)安装,青龙面板还是安装在docker里,这里依赖宝塔面板安装和管理docker。 安装完成后,进入SSH终端管理,输入代码安装青龙面板。ssh可以直接宝塔里操作,也可以安装ssh连接

手把手教你入门vue+springboot开发(五)--docker部署

文章目录 前言一、前端打包二、后端打包三、docker运行总结 前言 前面我们重点介绍了vue+springboot前后端分离开发的过程,本篇我们结合docker容器来研究一下打包部署过程。 一、前端打包 在VSCode的命令行中输入npm run build可以打包前端代码,出现下图提示表示打包完成。 打包成功后会在前端工程目录生成dist目录,如下图所示: 把

[Centos7] 部署Zabbix5.0

目录 0 卸载 Zabbix1 准备工作1.1 关闭防火墙1.2 关闭SELinux1.3 重启服务器1.4 安装MySQL 2 配置 Zabbix yum 源2.1 安装zabbix的软件仓库配置包2.2 安装 Software Collections 仓库2.3 修改 Zabbix 仓库配置文件 3 安装 Zabbix3.1 遇到报错Requires: libmysqlclient.so

[分布式网络通讯框架]----ZooKeeper下载以及Linux环境下安装与单机模式部署(附带每一步截图)

首先进入apache官网 点击中间的see all Projects->Project List菜单项进入页面 找到zookeeper,进入 在Zookeeper主页的顶部点击菜单Project->Releases,进入Zookeeper发布版本信息页面,如下图: 找到需要下载的版本 进行下载既可,这里我已经下载过3.4.10,所以以下使用3.4.10进行演示其他的步骤。

springboot学习02-[热部署和日志]

热部署和日志 热部署 热部署

IntelliJ IDEA svn chekout 项目发生svn不是内部命令

错误信息: 1、Cannot checkout from svn: 'C:\Program' 不是内部或外部命令,也不是可运行的程序 或批处理文件 2、server ssl cerificate verification failed:certificate issued for a different hostname.issuer is not trusted (服务器ssl证书验证失败

上位机图像处理和嵌入式模块部署(mcu和swd接口)

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】         最近学习mcu的时候,接触了不少调试器,这里面有daplink、st-link v2、j-link v9。虽然模块的形状可能不太一样,但是硬件的连线都差不多,都是mcu上的3.3v、clk、dio和gnd四根连线。出于好奇,今天花了点时间了解了一下debug port、sw