# yum install mod_dav_svn.x86_64 subversion-svn2cl.noarch
===========================================================================================================================================================================
svnserve.conf:12: Option expected
为什么会出现这个错误呢,就是因为subversion读取配置文件svnserve.conf时,无法识别有前置空格的配置文件,issue存在前置空格

svn: Invalid authz configuration
是authz文件的问题 你看是不是添加user的时候导致空格或换行不对

format': Permission denied
是由于缺少执行 # chcon -R -h -t httpd_sys_content_t /svn
===========================================================================================================================================================================
SVN Without apache
===========================================================================================================================================================================
# cd /
# mkdir svn
# svnadmin create svn1
# cat /svn/svn1/conf/svnserve.conf | grep -v '^#' |grep -v '^$'
[general]
anon-access = read
auth-access = write
password-db = /svn/svn1/conf/passwd
realm = Eric First Repository

# cat /svn/svn1/conf/authz | grep -v '^#' |grep -v '^$'
[aliases]
[groups]
admin = eric
[test:/svn/svn1]
@admin = rw

# cat /svn/svn1/conf/passwd | grep -v '^#' |grep -v '^$'
[users]
eric = eric

# svnserve -r /svn/svn1/ -d
# netstat -an |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN

# mkdir project123

# svn import project123 svn://localhost/ -m "initial import"
Authentication realm: <svn://localhost:3690> Eric First Repository
Password for 'eric':

-----------------------------------------------------------------------
ATTENTION! Your password for authentication realm:

<svn://localhost:3690> Eric First Repository

can only be stored to disk unencrypted! You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible. See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/root/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? no

# mkdir -p /root/testsvn
# cd /root/testsvn
# svn co svn://localhost/
Checked out revision 0.
# cd localhost/
# touch abc
# svn add abc
# svn ci -m "add abc"
Authentication realm: <svn://localhost:3690> Eric First Repository
Password for 'eric':
Adding abc
Transmitting file data .
Committed revision 1.

# mkdir -p /root/abcd
# svn co svn://localhost
A localhost/abc
Checked out revision 1.
# mkdir testdir
# svn add testdir/
A testdir
# svn ci -m "add dir"
Authentication realm: <svn://localhost:3690> Eric First Repository
Password for 'eric':
Adding testdir
Committed revision 2.
# svn info
Path: .
URL: svn://localhost
Repository Root: svn://localhost
Repository UUID: 6de30579-f38c-4a96-8970-da2307fefe79
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: eric
Last Changed Rev: 1
Last Changed Date: 2012-08-27 16:24:38 +0800 (Mon, 27 Aug 2012)

# svn remove abc
D abc
[root@CentOS1 localhost]# svn ci -m "remove abc"
Authentication realm: <svn://localhost:3690> Eric First Repository
Password for 'eric':
Deleting abc
Committed revision 5.
===========================================================================================================================================================================
SVN Merge
===========================================================================================================================================================================
# cd testdir/
# mkdir dir1 dir2 dir3
# svn add dir*
# svn ci -m "add dirs"
# cd dir1/
# touch file1
# svn add file1
# cd ../dir2/
# touch file2
# svn add file2
# cd ..
# svn ci -m "add files"

# svn cp dir1/ dir2/
A dir2/dir1
# svn ci -m "dev dir1 inside dir2"
Adding testdir/dir2/dir1
Adding testdir/dir2/dir1/file1
Committed revision 8.

# cd testdir/
# cd dir2/dir1/
touch file4 file5 file6
# svn add file4 file5 file6
# cd testdir/dir1/
# touch file8 file7 file9
# svn add file7 file8 file9
# cd testdir/
# svn ci -m "dev tog"
Adding testdir/dir1/file7
Adding testdir/dir1/file8
Adding testdir/dir1/file9
Adding testdir/dir2/dir1/file4
Adding testdir/dir2/dir1/file5
Adding testdir/dir2/dir1/file6
Transmitting file data ......
Committed revision 9.

# cd testdir/dir2/dir1
# ls -l
total 0
-rw-r--r--. 1 root root 0 Aug 27 17:51 file4
-rw-r--r--. 1 root root 0 Aug 27 17:51 file5
-rw-r--r--. 1 root root 0 Aug 27 17:51 file6

# cd testdir/dir1
# ls -l
total 0
-rw-r--r--. 1 root root 0 Aug 27 17:21 file1
-rw-r--r--. 1 root root 0 Aug 27 17:32 file7
-rw-r--r--. 1 root root 0 Aug 27 17:32 file8
-rw-r--r--. 1 root root 0 Aug 27 17:32 file9

# cd testdir/dir1/
# svn merge svn://localhost/testdir/dir2/dir1@8 svn://localhost/testdir/dir2/dir1
--- Merging r9 into '.':
A file4
A file5
A file6
# svn update
At revision 9.

# svn ci -m "merge dir1"
Sending dir1
Adding dir1/file4
Adding dir1/file5
Adding dir1/file6

Committed revision 10.

# cd testdir/dir1
# ls -l
total 0
-rw-r--r--. 1 root root 0 Aug 27 17:21 file1
-rw-r--r--. 1 root root 0 Aug 27 17:51 file4
-rw-r--r--. 1 root root 0 Aug 27 17:51 file5
-rw-r--r--. 1 root root 0 Aug 27 17:51 file6
-rw-r--r--. 1 root root 0 Aug 27 17:32 file7
-rw-r--r--. 1 root root 0 Aug 27 17:32 file8
-rw-r--r--. 1 root root 0 Aug 27 17:32 file9
===========================================================================================================================================================================
SVN With apache
===========================================================================================================================================================================
# cat /etc/httpd/conf.d/subversion.conf |grep -v "^#" |grep -v "^$"
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /svn
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>

# cd /

# chown -R apache.apache svn/
# chcon -R -h -t httpd_sys_content_t /svn

# htpasswd -c /etc/svn-auth-users testuser
New password:
Re-type new password:
Adding password for user testuser

# cat /etc/svn-auth-users
testuser:kEsviSFVV4iY
# htpasswd -m /etc/svn-auth-users testuser2
New password:
Re-type new password:
Adding password for user testuser2

# cat /etc/svn-auth-users
testuser:kEsviSFVV4iYk
testuser2:$apr1$0kk6lLgU$Vpk/ruvwf47t4Z/2PSMo20

# /etc/init.d/httpd start

Web login http://10.3.53.107/svn/svn1/ with username and password

svn installation的更多相关文章

  1. vscode 安装插件SVN 报vscode SVN not found

    1.软件环境 svn客户端安装的是TortoiseSVN: vscode 安装的为SVN的插件: 2. 问题现象 vscode打开文件夹后右下角提示如下报错:SVN not found. Instal ...

  2. eclipse中搭建svn开发管理环境

    1.准备好资源 subversive,若是离线安装,已为大家准备好:http://pan.baidu.com/s/1hrbXH9y(本人喜欢离线安装,在线安装就不在此说了,其实只要一种方法简单的方法能 ...

  3. Sublime text 3安装svn插件

    这几天在研究sublime text 3的使用,感觉还不错,现在想让他能够支持svn,所以就写一下怎么安装svn插件吧~ 首先先说一下这个官方的插件网站 点我进入~ 进入之后,最上边的第一个就是点击安 ...

  4. 手动方式安装 eclipse 的svn插件 Subversive和 Subversive SVN Connectors

      0.下载配置jdk 链接:http://pan.baidu.com/s/1miIVuic 密码:mwo7 配置 JAVA_HOME .JRE_HOME 1 下载eclipse       ecli ...

  5. Sublime text 3 SVN插件及使用方法

    前提是你电脑里已装有SVN,这时只是设置快捷调用SVN. 1.通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台 2.粘贴对应版本的代码后回车安装 适用于 S ...

  6. python svn

    svn 0.3.36 Downloads ↓ Intuitive Subversion wrapper. Introduction svn is a simple Subversion library ...

  7. mac下烦人的eclipse安装svn插件

    eclipse作为一个鸡肋般的java ide,颇有食之无味弃之可惜之感.最近公司统一对电脑做了一些处理,搞的我的eclipse都不能用了.重新安装了一下,各种maven.svn,代码格式什么的依赖神 ...

  8. Mac下eclipse安装SVN插件

    eclipse中最常使用的SVN插件是subclipse,先到subclipse官网:http://subclipse.tigris.org下载该插件.   如上图,点击“Download and I ...

  9. 利用Cocoapods、SVN 创建私有库实现方案(yoowei)

    由于项目年后要进行组件化,考虑到如果公司内部实现一些私有的组件,不对外公开,而又想在不同项目中使用,该怎么办呢? 使用Cocoapods制作私有库就完美的解决了这个问题.下图就是使用私有库带给我们的好 ...

随机推荐

  1. C#基础-面向对象-封装

    封装 命名空间 using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp6 { c ...

  2. python json.dumps raise TypeError(repr(o) + " is not JSON serializable") TypeError: 0 is not JSON serializable

    出错如题. 这个问题有可能是因为python的json.dumps没法识别dump内容里的某些数据类型导致的.我的问题是因为dict中含有numpy.int64,numpy.float等类型导致的,需 ...

  3. node服务端渲染(完整demo)

    简介 nodejs搭建多页面服务端渲染 技术点 koa 搭建服务 koa-router 创建页面路由 nunjucks 模板引擎组合html webpack打包多页面 node端异步请求 服务端日志打 ...

  4. PHP代码审计4-漏洞挖掘思路

    漏洞挖掘思路 漏洞形成的条件 1.变量可控制 2.变量可到达有利用价值的函数(危险函数) 漏洞造成的效果 漏洞的利用效果取决于最终的函数功能,变量进入什么样的函数就导致什么样的效果 危险函数 文件包含 ...

  5. Java线程和多线程(五)——单例类中的线程安全

    单例模式是最广泛使用的创建模式之一.在现实世界之中,诸如Databae的连接或者是企业信息系统(EIS)等,通常其创建都是受到限制的,应该尽量复用已存在对象而不是频繁创建销毁.为了达到这个目的,开发者 ...

  6. 剑指Offer - 九度1349 - 数字在排序数组中出现的次数

    剑指Offer - 九度1349 - 数字在排序数组中出现的次数2013-11-23 00:47 题目描述: 统计一个数字在排序数组中出现的次数. 输入: 每个测试案例包括两行: 第一行有1个整数n, ...

  7. 《Cracking the Coding Interview》——第4章:树和图——题目4

    2014-03-19 03:40 题目:给定一棵二叉树,把每一层的节点串成一个链表,最终返回一个链表数组. 解法:前序遍历,遍历的同时向各个链表里添加节点.水平遍历好像还不如前序遍历来得方便. 代码: ...

  8. DOS程序员手册(九)

    第14章参考手册概述     本书余下的章节将向读者们介绍BIOS.DOS各种各样API函数和服务,作为一名程 序员,了解和掌握这些知识是很有好处的.在所介绍的参考手册中,每部手册都汇集了大 量的资源 ...

  9. 在Linux下安装ArcGIS10.2

    最近由于工作需要,沉迷可视化无法自拔,一直在研究基于GIS的地图可视化,自己在本机windows搭建了一个ArcGIS服务器,用Tableau和R调用WMS服务成功,不愧是GIS元老级应用,效果超赞. ...

  10. python 学习分享-socketserver

    SocketServer内部使用 IO多路复用 以及 “多线程” 和 “多进程” ,从而实现并发处理多个客户端请求的Socket服务端.即:每个客户端请求连接到服务器时,Socket服务端都会在服务器 ...