用户名: 密码: 验证码: 注册           网站地图 高级搜索 RSS订阅 收藏本站
山东十七地市站长联盟信息: 济南 青岛 淄博 枣庄 东营 烟台 潍坊 济宁 泰安 威海 日照 莱芜 临沂 德州 聊城 滨州 菏泽      
您的位置:主页>服 务 器>Win服务器>

windows下架设subversion服务器

[ 来源: | 作者: | 更新日期:2007-7-3 00:29:45 | 评论 0 条 | 我要投稿 ]

为什么选择subversion不在本文讨论范围,网上到处都是,本文仅描述架设subversion服务器的步骤: 字串5

step1)下载和安装服务器 字串1

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

 step2)建立Repository

字串8

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

字串3

step3)配置Repository

字串6

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

对两个文件作如下修改

字串3

svnserve.conf 字串6

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are 
"write", "read",

字串5


### and 
"none".  The sample settings below are the defaults.
anon-access 
= read
auth-access 
= write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /
, 字串9
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db 
= passwd

passwd 字串3

[users]
# harry 
= harryssecret
# sally 
= sallyssecret
weip
=weip

我不再对上面两个文件具体内容作出解释,我相信各位一看就懂,我需要提醒的就是 一开始svnserve.conf中的[general] 和 passwd 中的 [users]  行前有#,一定要去掉,否则会抛错 字串8

step4)启动subversion服务器

字串6

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

后记:

字串1

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

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

字串9

你可以下载客户端TortoiseSVN访问svn服务器,如果你使用eclipse作开发的话,也可以装个subclipse插件充当客户端。当客户端连上服务器之后,然后在建立远程文件夹(作为一个项目目录),然后将远程文件check out到本地之后,你在该目录下所产生的任何文件就都处于svn的控制了,以下你就可以版本控制的操作了,祝各位svn愉快

字串1


Tags:服务器 目录 本文 文件 subversion D: passwd 可以 使用
您的评论
用户名:新注册) 密码: 匿名评论 [所有评论]

·用户发表意见仅代表其个人意见,并且承担一切因发表内容引起的纠纷和责任
·本站管理人员有权在不通知用户的情况下删除不符合规定的评论信息或留做证据
·请客观的评价您所看到的资讯,提倡就事论事,杜绝漫骂和人身攻击等不文明行为