在虚拟机中搭建svn 服务端

一、下载svn 服务端软件
   

    subversion.apache.org - Getting Subversion - Binary Packages - Windows - Win32Svn - Files- 1.6.16 - svn-win32-1.6.16.zip(摘自http://archive.cnblogs.com/a/2023421)

二、安装服务端并配置

   1)解压到C 盘的根目录下


   2) 在path 中加入:C:\svn-win32-1.6.16\bin


   3)创建版本仓库
       3.1)在D 盘创建目录:D:\svn_repository\svntest

       3.2)创建仓库:svnadmin create D:\svn_repository\svntest


       3.3)修改文件
             3.3.1)修改:D:\svn_repository\svntest\conf\svnserve.conf


                        修改如下(红色字体):

### 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 directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control. Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file. If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
# authz-db = authz
### This option specifies the authentication realm of the repository


       3.3.2)修改D:\svn_repository\svntest\conf\passwd
                 功能:添加用户,并且设置用户的密码

### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
# harry = harryssecret
# sally = sallyssecret
root=pwd

          3.4)向windows 中添加服务

C:\>sc create svnserver binpath= "C:\svn-win32-1.6.16\bin\svnserve.exe
--service --root D:\svn_repository" displayname= "svnserver" depend= tcpip
start= auto obj= "NT AUTHORITY\NetworkService"


3.4.1)查看服务:
1、Ctrl+R 输入services.msc


2、启动服务
3、查看本机ip 地址


记录下IP:172.16.19.129


三、安装客户端
1)下载:
tortoisesvn.tigris.org - tortoisesvn.net/downloads - TortoiseSVN 32-bit -
downloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.6.15.21042-win32-svn-1.6.16.msi
(摘自http://archive.cnblogs.com/a/2023421)
2)在虚拟系统外的系统安装。
3)重启
4)测试:
安装客户端,重启后会在右键菜单中出现svn checkout 等命令
4.1)在D 盘新建一个文件夹test,进入到test,使用svncheckout 命令
4.2)输入url:svn://172.16.19.129/svntest
4.3) checkout 后,test 图标会变为


4.4)说明你已成功配置了svn 服务端
四、myeclipse9.0 的svn插件安装
由于我一直连接不上configuration center,故只有上网下载后在配置。配置过程如下:
1、
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2、下载
site-1.6.18.zip
3、解压到D:\Program Files\myeclipse\Common\svn
4、在D:\Program Files\myeclipse\MyEclipse 9\dropins 中新建svn.link 文件并写入如下内
容:path=D:\\Program Files\\myeclipse\\Common\\svn
5、重启myeclipse9.0(这个过程耗费的时间比较长)。[可能是我的机子的问题]
6、选择一个工程,右键


选择svn


Next
创建资源库


Next


Next


Finish


输入用户名root
密码pwd

Ok
Cosole 中显示


说明已成功把文件导入到svn 上了。
至此,svn 的服务端在虚拟机(winxp)的教程已结束。谢谢!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值