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
[[email protected] 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/[email protected] 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,布布扣,bubuko.com

时间: 2024-12-28 01:41:56

svn installation的相关文章

Ubuntu12.04 Installation and Subversion(svn)

Ubuntu Installation Guide Abstract   This document contains installation instructions for the Ubuntu 12.04 system (codename “‘Precise Pangolin’”), for the AMD64 (“amd64”) architecture. Table of Contents   1.      System Requirements 2.      Installat

每日自动备份JENKINS_HOME至SVN

每日自动备份JENKINS_HOME至版本控制系统SVN Jenkins是一个可扩展的开源的持续集成工具,也是当下最流行的持续集成工具. Jenkins主要功能 易于安装(Easy installation) 易于配置(Easy configuration) 变更集支持(Change set support) 永久链接(Permanent links) RSS/Email/IM集成(RSS/E-mail/IM Integration) 事后标签(After-the-fact tagging) J

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

  0.下载配置jdk 链接:http://pan.baidu.com/s/1miIVuic 密码:mwo7 配置 JAVA_HOME .JRE_HOME 1 下载eclipse       eclipse各种版本,点击左边菜单选择  http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2   2. 下载Subversive和 Subversive SVN Connectors 链接:h

eclipse中搭建svn开发管理环境

1.准备好资源 subversive,若是离线安装,已为大家准备好:http://pan.baidu.com/s/1hrbXH9y(本人喜欢离线安装,在线安装就不在此说了,其实只要一种方法简单的方法能达到目的即可) 2.安装步骤 打开eclipse-->help-->install new software,打开如下界面 点击图中圈红add,然后如下图填写name和路径 填写完毕点击OK,会出现三项选择,如果我们只是需要用svn来管理项目,只需要勾选第三项就可以了,然后一直next,勾选如下:

SVN在使用过程中比较纠结的问题记录

对于代码版本管理工具,作为程序员,或多或少,都遇到一些奇葩的问题,我把自己曾经对于SVN遇到的问题做一个记录,废话不多说,直接上正文. 1.在Eclipse中使用远程导入工程时,提示:文件夹””已不存在. 特别说明下,这种错误在连接本地的svn情况可能不会出现,但是如果当你连接到远程服务器的svn这种情况可能就会出现,当初的时候我也是在代码提交本地SVN未出现报错,但是一提交服务器的SVN就会报错,搞得我纠结了好久. 2.Eclipse中添加新的资源位置报错,svn: Number is lar

SVN安装及使用

目录 1客户端安装——P1 2 SVN项目的初始化导入——P4 3基本客户端操作——P8 4 MyEclipse7.5 SVN插件安装详细步骤--带图——P15 5 Eclipse下SVN版本控制插件的安装与使用——P30   一.SVN客户端——安装 1:双击安装文件:TortoiseSVN-1.5.5.14361-win32-svn-1.5.4.msi 2:点击下一步next 3:选择我接受那个单选框,出现Next按钮后点击下一步 4点击Browse按钮更改程序安装位置(可以不改),本人将该

Jenkins(二) 安装、新建Jobs与删除及SVN配置(转)

官网首页(https://jenkins-ci.org/)就提供了windows版本的Jenkins安装包.可以自己下载一个用于学习.安装后自动打开http://localhost:8080,就可以看见Jenkins的界面. 要运行Jenkins的其它配置: 1,Jenkins是java程序,因此需要安装JDK. 2,同时运行job需要提供repository,也就是存放Jenkins定期poll源代码的地方.可以去github免费注册一个. 3,如果想在Jenkins中使用ant,maven等

Sublime text 3安装svn插件

这几天在研究sublime text 3的使用,感觉还不错,现在想让他能够支持svn,所以就写一下怎么安装svn插件吧~ 首先先说一下这个官方的插件网站 点我进入~ 进入之后,最上边的第一个就是点击安装插件包管理插件,有了这个插件才能够方便的安装别的插件. 首先通过ctrl+~唤出控制台 如果你是sublime text 3那么执行一下代码 1 import urllib.request,os,hashlib; h = '2deb499853c4371624f5a07e27c334aa' + '

python svn

svn 0.3.36 Downloads ↓ Intuitive Subversion wrapper. Introduction svn is a simple Subversion library for Python. I wrote it so that there could be a lightweight and accessible library that was also available on PyPI. It is compatible with both Python