# 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. LeetCode977. 有序数组的平方

    问题:977. 有序数组的平方 给定一个按非递减顺序排序的整数数组 A,返回每个数字的平方组成的新数组,要求也按非递减顺序排序. 示例 1: 输入:[-4,-1,0,3,10] 输出:[0,1,9,1 ...

  2. 列表,元组的操作,for循环

    1.列表 # li = ["wang","jian","wei"] # print(li) # 结果:['wang', 'jian', 'w ...

  3. No module named 'PyQt5.sip'

    使用pyinstaller打包python文件为windows可执行程序可能遇到的问题 pyinstaller yourprogram.py打包的程序双击打开一闪而过,提示上面标题的错误 把pycom ...

  4. Hadoop(初始Hadoop)

    Hadoop核心组件 1.Hadoop生态系统 Hadoop具有以下特性: 方便:Hadoop运行在由一般商用机器构成的大型集群上,或者云计算服务上 健壮:Hadoop致力于在一般商用硬件上运行,其架 ...

  5. 02,Python网络爬虫第二弹《http和https协议》

    一.HTTP协议 1.官方概念: HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文 ...

  6. 11.2,nginx负载均衡实验

    Nginx负载均衡概述 Web服务器,直接面向用户,往往要承载大量并发请求,单台服务器难以负荷,我使用多台WEB服务器组成集群,前端使用Nginx负载均衡,将请求分散的打到我们的后端服务器集群中,实现 ...

  7. toolbar menu 字体颜色和大小

    Toolbar菜单中menu当中我们大多数都使用图片来按钮,可是有些时候我们也会直接使用文字,文字的颜色如何修改呢. 其实很简单,我们只要修改styles.xml文件中,添加一句 <item n ...

  8. linux中如何解决克隆后的电脑的问题

    1.如何解决克隆后的电脑的网络问题 克隆出来的电脑,IP地址,网卡都是重复的,不能直接使用,需要修改 1)vim  /etc/udev/rules.d/70-persistent-net.rules ...

  9. ubuntu上通用解压方式

    ubuntu上通用解压方式 tar xvf *.bin.tar.gz,gz,tar.tgz

  10. DOS程序员手册(十一)

    560页 版本5中新增加的子功能05h支持程序截获MS-DOS EXEC调用,并实 现自我装载.该子功能能实现内存的修补,如设置装载程序能接收的版本号 (通过SETVER设置的版本号)以及实现对装载程 ...