Chinaunix首页 | 论坛 | 博客
  • 博客访问: 28609195
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: 项目管理

2009-12-08 23:27:45

如何配置一个SVN服务
可以通过apache来配置一个SVN服务。

基于 Apache 的服务器

1、安装 Apache
2、安装 Subversion
下载http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
  1. 运行Subversion安装程序,并根据指导安装,如果Subversion认识到你安装了Apache,你就几乎完成了工作,如果它没有找到Apache服务器,你还有额外的步骤。

  2. 使用Windwos资源管理器,来到Subversion的安装目录(通常是c:\program files\Subversion),找到文件/httpd/mod_dav_svn.somod_authz_svn.so,复制这些文件到Apache的模块目录(通常是c:\program files\apache group\apache2\modules )。

  3. 从 Subversion 安装目录将 /bin/libdb*.dll/bin/intl3_svn.dll 复制到 Apache 的 bin 目录。
  4. 使用记事本之类的文本编辑器修改Apache的配置文件(通常是 C:\Program Files\Apache Group\Apache2\conf\httpd.conf),做出如下修改:

    去掉以下几行的注释(删除 '#'标记):

    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_module modules/mod_dav.so

    将以下两行到 LoadModule 节的末尾。

    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module modules/mod_authz_svn.so
做完了这些只是说明你能够建立起来了SVN服务器与APACHE之间的关联。还需要做以下的配置处理
  1. At the end of the config file add the following lines:


    DAV svn
    SVNListParentPath on
    SVNParentPath D:\SVN
    #SVNIndexXSLT "/svnindex.xsl"
    AuthType Basic
    AuthName "Subversion repositories"
    AuthUserFile passwd
    #AuthzSVNAccessFile svnaccessfile
    Require valid-user

    This configures Apache so that all your Subversion repositories are physically located below D:\SVN. The repositories are served to the outside world from the URL: . Access is restricted to known users/passwords listed in the passwd file.

  2. To create the passwd file, open the command prompt (DOS-Box) again, change to the apache2 folder (usually c:\program files\apache group\apache2) and create the file by entering

    bin\htpasswd -c passwd 

    This will create a file with the name passwd which is used for authentication. Additional users can be added with

    bin\htpasswd passwd 
  3. 再次重启Apache服务。

  4. 将浏览器指向MyNewRepository(MyNewRepository是你此前创建的版本库名),如果一切正常,你会被提示输入用户名和密码,然后你会看到版本库的内容。

(未完。)
阅读(979) | 评论(0) | 转发(0) |
0

上一篇:haproxy 学习一

下一篇:xml2json插件

给主人留下些什么吧!~~