查看: 6691|回复: 0
打印 上一主题 下一主题

windows下架设subversion服务器

[复制链接]
跳转到指定楼层
1#
发表于 2007-10-8 15:33:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
台州网址导航
为什么选择subversion不在本文讨论范围,网上到处都是,本文仅描述架设subversion服务器的步骤:

step1)下载和安装服务器

下载并安装svn-1.2.3-setup.exe,假设你安装到D:\deploy\Subversion

step2)建立Repository

打开命令窗口, 键入 svnadmin create D:\deploy\projects\searchz

step3)配置Repository

进入Repository目录,在本文中是D:\deploy\projects\searchz,你会看到conf目录,进入该目录,你会看到svnserve.conf和passwd两个文件

对两个文件作如下修改

svnserve.conf
  1. [general]
  2. ### These options control access to the repository for unauthenticated
  3. ### and authenticated users.  Valid values are "write", "read",
  4. ### and "none".  The sample settings below are the defaults.
  5. anon-access = read
  6. auth-access = write
  7. ### The password-db option controls the location of the password
  8. ### database file.  Unless you specify a path starting with a /,
  9. ### the file's location is relative to the conf directory.
  10. ### Uncomment the line below to use the default password file.
  11. password-db = passwd
复制代码
passwd
  1. [users]
  2. # harry = harryssecret
  3. # sally = sallyssecret
  4. weip=weip
复制代码
我不再对上面两个文件具体内容作出解释,我相信各位一看就懂,我需要提醒的就是 一开始svnserve.conf中的[general] 和 passwd 中的 [users]  行前有#,一定要去掉,否则会抛错

step4)启动subversion服务器

打开命令窗口键入svnserve -d -r D:\deploy\projects,默认端口是3690,如果不幸这个端口被别的程序暂用,可以通过选项 --listen-port=绑定端口

后记:

这样服务器就架设好了。当然你可以使用apache和subversion结合使用,本文使用了subversion自带的svn服务器

url格式为svn://ip地址//Repository名,在本文中是svn://127.0.0.1/searchz

你可以下载客户端TortoiseSVN访问svn服务器,如果你使用eclipse作开发的话,也可以装个subclipse插件充当客户端。当客户端连上服务器之后,然后在建立远程文件夹(作为一个项目目录),然后将远程文件check out到本地之后,你在该目录下所产生的任何文件就都处于svn的控制了,以下你就可以版本控制的操作了,祝各位svn愉快
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖
台州维博网络(www.tzweb.com)专门运用PHP+MYSQL/ASP.NET+MSSQL技术开发网站门户平台系统等。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

网站推广
关于我们
  • 台州朗动科技(Tzweb.com)拥有多年开发网站平台系统门户手机客户端等业务的成功经验。主要从事:政企网站,系统平台,微信公众号,各类小程序,手机APP客户端,浙里办微应用,浙政钉微应用、主机域名、虚拟空间、后期维护等服务,满足不同企业公司的需求,是台州地区领先的网络技术服务商!

Hi,扫描关注我

Copyright © 2005-2026 站长论坛 All rights reserved

Powered by 站长论坛 with TZWEB Update Techonolgy Support

快速回复 返回顶部 返回列表