SVN安裝

一、准备工作:
  1,下载Subversion服务器程序。
  http://subversion.tigris.org/
  2,下载Subversion的Windows客户端TortoiseSVN
  http://www.subversion.org.cn/
二、svn服务器配置:
  1:双击运行Setup-Subversion-1.5.3.msi一路默认,只管下一步(如图)
  2:建立代码仓库 如:若在D:盘下创建代码仓库svnRoot
    运行命令:svnadmin create --fs-type fsfs D:\svnRoot将会在D:盘生成svnRoot目录
    这时在D:\svnRoot文件中已经有了其他子文件,说明版本库建立成功
  如下图



3:将SVNService.exe复制到svn安装目录,默认C:\program files\subversion\bin目录下
然后运行命令:svnservice.exe -install -d -r D:\svnRoot
如果出现:CreateService failed - Commandline set: "-d" "-r" "D:\svnRoot"的
提示,运行svnservice –remove后再运行:svnservice.exe -install -d -r D:\svnRoot
如下图:




4,配置用户和权限
  来到D:\svnRoot\conf目录,
(1)修改svnserve.conf:去掉下面两行的注释:
  # [general]
  # password-db = passwd
  将#号去了,前面不留空格。改为:
  [general]
  password-db = passwd
(2)然后修改同目录的passwd文件,去掉下面三行的注释:
  # [users]
  # harry = harryssecret
  # sally = sallyssecret
  最后变成:
  [users]
  harry = harryssecret
  sally = sallyssecret
  可以自己定义一个帐号&密码
  例如:
  [users]
  admin = password
6.启动服务: net start svnService

posted @ 2012-08-14 15:31  Java Oracle SQL技术  阅读(373)  评论(0编辑  收藏  举报