svn installation
# 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的更多相关文章
- vscode 安装插件SVN 报vscode SVN not found
1.软件环境 svn客户端安装的是TortoiseSVN: vscode 安装的为SVN的插件: 2. 问题现象 vscode打开文件夹后右下角提示如下报错:SVN not found. Instal ...
- eclipse中搭建svn开发管理环境
1.准备好资源 subversive,若是离线安装,已为大家准备好:http://pan.baidu.com/s/1hrbXH9y(本人喜欢离线安装,在线安装就不在此说了,其实只要一种方法简单的方法能 ...
- Sublime text 3安装svn插件
这几天在研究sublime text 3的使用,感觉还不错,现在想让他能够支持svn,所以就写一下怎么安装svn插件吧~ 首先先说一下这个官方的插件网站 点我进入~ 进入之后,最上边的第一个就是点击安 ...
- 手动方式安装 eclipse 的svn插件 Subversive和 Subversive SVN Connectors
0.下载配置jdk 链接:http://pan.baidu.com/s/1miIVuic 密码:mwo7 配置 JAVA_HOME .JRE_HOME 1 下载eclipse ecli ...
- Sublime text 3 SVN插件及使用方法
前提是你电脑里已装有SVN,这时只是设置快捷调用SVN. 1.通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台 2.粘贴对应版本的代码后回车安装 适用于 S ...
- python svn
svn 0.3.36 Downloads ↓ Intuitive Subversion wrapper. Introduction svn is a simple Subversion library ...
- mac下烦人的eclipse安装svn插件
eclipse作为一个鸡肋般的java ide,颇有食之无味弃之可惜之感.最近公司统一对电脑做了一些处理,搞的我的eclipse都不能用了.重新安装了一下,各种maven.svn,代码格式什么的依赖神 ...
- Mac下eclipse安装SVN插件
eclipse中最常使用的SVN插件是subclipse,先到subclipse官网:http://subclipse.tigris.org下载该插件. 如上图,点击“Download and I ...
- 利用Cocoapods、SVN 创建私有库实现方案(yoowei)
由于项目年后要进行组件化,考虑到如果公司内部实现一些私有的组件,不对外公开,而又想在不同项目中使用,该怎么办呢? 使用Cocoapods制作私有库就完美的解决了这个问题.下图就是使用私有库带给我们的好 ...
随机推荐
- 【PGP公钥】
Fingerprint: 37AF 3814 3ABC 5DFA 97F5 300E 581D A2E3 F4D2 F585 Key ID:0x581DA2E3F4D2F585 -----BEGIN ...
- PXE+DHCP+TFTP+Cobbler 无人值守安装centos 7
Cobbler(补鞋匠)是通过将DHCP.TFTP.DNS.HTTP等服务进行集成,创建一个中央管理节点,其可以实现的功能有配置服务,创建存储库,解压缩操作系统媒介,代理或集成一个配置管理系统,控制电 ...
- vim编辑器使用习惯问题
Ubuntu中vi在编辑状态下方向键不能用,一按方向键盘就出ABCD,想插入个字母还非常麻烦,还有回格键不能删除等我们平时习惯的一些键都不能使用. 解决办法: 可以安装vim full版本,在full ...
- web worker,SSE,WebSocket,AJAX 与后端交互的方式
一 web worker web worker 是运行在后台的 JavaScript,独立于其他脚本,不会影响页面的性能.您可以继续做任何愿意做的事情:点击.选取内容等等,而此时 web worker ...
- mysql 自定义不规则排序
mysql按id的指定顺序进行排序,以前解决过一次,后来忘了,记录一下 SELECT * FROM `table` WHERE id<6 order by field(id,3,5,1,2,4)
- list函数及list对象的reverse方法
list的reverse方法,是就地reverse,不返回值 如a是一个list,a.reverse()直接将a这个list给reverse了,所以如果print(a.reverse())就是None ...
- linux-shell——04
mv 移动文件或者目录 格式:mv [选项] 源文件/目录 目标文件/目录 注:若移动目标位置与源位置相同(当前下操作),则此操作相当于重命名(改名) ex: [root@local ...
- GPIO基础知识
STM32 GPIO入门知识 GPIO是什么? 通用输入输出端口,可以做输入,也可以做输出.GPIO端口可通过程序配置成输入或输出. 引脚和GPIO的区别和联系 STM32的引脚中,有部分是做GPIO ...
- 【转帖】置高并发jdbc连接池
简单的MySQL连接池 <Resource type="javax.sql.DataSource" name="jdbc/TestDB" factory= ...
- 4 Vue.js 核心理念:数据驱动界面
1 style样式放在body里面 <style type="text/css"> .ui.segment.container { width:700px; } p { ...