手机版
你好,游客 登录 注册
背景:
阅读新闻

企业应用单SVN与Apache+SVN配置整理

[日期:2012-06-24] 来源:Linux社区  作者:linux521 [字体:大 中 小]
说明:       系统环境:CentOS  5.4  x86_64 

一、所需软件
   http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz
  
http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.gz
   
http://labs.renren.com/apache-mirror//httpd/httpd-2.2.21.tar.gz
二、单svn
安装明细:安装位置 SVN_DIR=/opt/svn (可自定义)
1、获取svn安装包:  

  1. wget “http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz”   
  2. wget “http://subversion.tigris.org/dow ... n-deps-1.6.6.tar.gz”   

编译svn以root用户登录:  

  1. tar xfvz subversion-1.6.6.tar.gz   
  2. tar xfvz subversion-deps-1.6.6.tar.gz   
  3. cd subversion-1.6.6   
  4. ./configure –prefix=/opt/svn –without-berkeley-db   

(注:以svnserve方式运行,不加apache编译参数。以fsfs格式存储版本库,不编译berkeley-db)  

  1. make && make install  

在/etc/profile最后加入 SVN Path 以方便操作:  

  1. vi /etc/profile   
  2. PATH=$PATH:/opt/svn/bin   
  3. export PATH   

测试是否安装成功:

  1. svnserve –-version   
  2. 或   
  3. /opt/svn/bin/svnserve –version   


如果显示如下,svn安装成功:

  1. svnserve, version 1.6.6 (r40053)   
  2. compiled Dec 2 2009, 22:37:15   
  3. Copyright (C) 2000-2009 CollabNet.   
  4. Subversion is open source software, see http://subversion.tigris.org/ <script language="JavaScript" src="http://book.book560.com/ads/ads728x15.js"   
  5. type="text/javascript"></script> 
  6. This product includes software developed by CollabNet (http://www.Collab.Net/).  
  7. The following repository back-end (FS) modules are available:  
  8. * fs_fs : Module for working with a plain file (FSFS) repository.  
  9. Cyrus SASL authentication is available.   


2. svn配置建立svn版本库目录可建多个:
新建文件夹:

  1. mkdir -p /opt/svndata/repos   


建立svn版本库: 

  1. svnadmin create /opt/svndata/repos 


修改svn版本库配置文件版本库: 

  1. vi /opt/svndata/repos/conf/svnserve.conf  

内容修改为:

  1. [general]   
  2. anon-access = none   
  3. auth-access = write   

注意:对用户配置文件的修改立即生效,不必重启svn。
passwd.conf [users]是必须的,文件格式如下:
[users]
下面列出要访问svn的用户,每个用户一行,示例:
[users]
username = password

linux
相关资讯       svn  Apache配置  SVN安装 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款