日期:2014-05-17  浏览次数:20648 次

windows下架设subversion服务器

windows下架设subversion服务器

关键字: windows下架设subversion服务器

一、安装
下载
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

如: 安装到 D:\deploy\Subversion

二、建立Repository

打开命令窗口, 键入 :
??? svnadmin create --fs-type fsfs G:\svnsrc\game

三、 配置Repository

进入Repository目录,在本文中是 G:\svnsrc\game
,你会看到conf目录,进入该目录,你会看到 svnserve.conf和passwd两个文件

对两个文件作如下修改

svnserve.conf

[ general ]
###?These?options?control?access?to?the?repository?for?unauthenticated
###?and?authenticated?users.??Valid?values?are?
" write " , ? " read " ,
###?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?/
,
###?the?file's?location?is?relative?to?the?conf?directory.
###?Uncomment?the?line?below?to?use?the?default?password?file.
password-db?
= ?passwd

passwd

[ users ]
#?harry?
= ?harryssecret
#?sally?
= ?sallyssecret
alpha
=123456


svnserve.conf中的[general] 和 passwd 中的 [users]? 行前有#,一定要去掉,不要有空格


四、 启动subversion

打开命令窗口键入