svn在windows系统下的安装步骤
1)首先去官方网站下载安装包
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
笔者下载的是svn-win32-1.5.4.zip解压文件
1). Download SVN server file and unzip to anywhere you prefer.
The file i used is the latest version: svn-win32-1.5.6.zip
2)设置把解压文件的bin子目录添加到patp的环境变量中
2). Add its bin directry into PATH environment veriable
Once finished, type ’svn’ command in DOS or terminal to test the installation and settings.
3)创建一个存放工程(会有很多工程)的目录 比如E:/svnworkspace
然后再创建一个工程(例如工程名称为myfirstproject)
C:\>svnadmin create E:/svnworkspace/myfirstproject
3). Now, let’s create a new project
svnadmin create D:\repository\myproject
4)配置项目
设置一些配置访问权限 访问认证信息
创建的新工程E:/svnworkspace/myfirstproject下面有个conf目录,下面有三个文件authz,passwd,svnserve.conf
打开svnserve.conf设置项主要有
[general]
anon-access = read//匿名用户只有读权限
auth-access = write//认证用户有写权限
password-db = passwd//用户密码设置文件名称
authz-db = authz//用户权限设置文件名称
realm = myfirstproject//项目名称
打开passwd设置项主要有
littlelion = 123456
打开authz设置项主要有
[groups]
developers = littlelion
@developers = rw
4). Configure our new project
After myproject was created successfully, you will find several files and folders created in it.
In conf folder, there are three files - authz, passwd, svnserve.conf - listing.
– svnserve.conf: the main entry for your project configuration.
In general section, set:
anon-access = none ## anonymous users are not allowed to access
auth-access = write ## authenticated users have write privilege.
password-db = passwd ## use the default password file, i.e. passwd file
authz-db = authz ## use the default authorization file, i.e. authz file
realm = myproject ## which realm to be protected. Here is our new project, i.e. myproject
–passwd: the user accounts are stored here
We will add two users for demonstration, harry and sally. You can just uncomment the existing lines.
harry = harryssecret ## harry is the user login name, harryssecret is his password.
sally = sallyssecret
–authz: authorization for the users
We make harry become a developer, sally is an observer only.
[groups]
developers = harry
Then we grant the permissions for them.
[myproject:/]
@developers = rw
sally= r
5)启动svn服务
C:\>svnserve -d -r E:/svnworkspace2 --listen-port 9000
注意listen-port前面是两个分隔符,不然命令无效
5). Now, the configuration was finished, so lets start the svn server
svnserve -d -r D:\repository --listen-port 9000
6)导入工程项目
C:\>svn import F:\workspace2\myfirstproject svn://localhost:9000/myfirstproject -m "initial import" --username littlelion --password 123456
还是注意用户名密码前的两个分隔符写法
import第一个是需要导入的工程项目 第二个是导入到svn库的位置,需要先建立一个svn项目才能导入这个项目,否则不能导入
导入后可以导出这个项目
C:\>svn co svn://localhost:9000/myfirstproject C:/myfirstproject --username littlelion --password 123456
6). Check out our new project
svn co svn://ip|host:9000/myproject myproject --username harry --password harryssecret
You can also make svn server as a windows service:
sc create svn binpath= "[yoursvnfolder]\bin\svnserve.exe --service -r D:\repository --listen-port 9000" displayname= "Subvsersion Server Service" depend= Tcpip start= auto
If you want to reconfigure:
sc config svn binpath= "[yoursvnfolder]\bin\svnserve.exe --service -r D:\repository --listen-port 9000" displayname= "Subvsersion Server Service" depend= Tcpip start= auto
Note: There is a space after each ‘=’ symbol.
P.S. svn server can be integrated with http server wonderfully, so that all svn files can be accessed via http protocol. But this is out of the scope of my article, because I already said I just want a simple svn server
.
分享到:
相关推荐
在Windows环境下的svn安装及配置说明,可以协助团队开发,方便进行文件、代码的管理。使用起来十分方便。。。
最强大的Svn在Windows下实现自动全备份和增量备份,以及异地备份,一切自动化完成 1.SVN备份内容 SVN在Windows下的自动备份实现,包括: 1)SVN目录的全备份(1周或1个月备份1次,由windows计划来调度执行); 2)...
原创:Windows下SVN代码服务器安装部署步骤(V1.1)
windows xp 操作系统的svn安装步骤,另外我个人资源里面有整个SVN的配置方法,及服务器安装程序、客户端安装程序、还有WORD文档安装方法。
Windows下搭建SVN服务器简明步骤
操作SVN界面习惯了,到了linux下懒得再用命令行了; 按照网上的步骤操作,遇到了各种问题,又对各个问题作了整理和说明 包含了客户端和服务器端需要做的修改 希望能给大家帮助 如果有问题,也请联系我,很高兴和大家...
windows 平台下SVN服务器部署安装,步骤详细,配图。作者自己在项目开发中整理而成。
windows环境下搭建svn环境以用代码同步提交。此文档为自己搭建环境时笔记,有步骤截图。完全可用。
首先来下载和搭建SVN服务器. 现在Subversion已经迁移到apache网站上了,下载地址: http://subversion.apache.org/packages.html 这是二进制文件包的下载地址,你可在左侧的导航栏找到源代码,文档的下载地址. ...
此文档为自己操作后总结,按照步骤做肯定可以在windows服务器搭建svn
在window2000及XP系统环境下配置使用的svn
Apache2.2+svn1.6.6 在windows环境安装配置版本控制的环境,按照说明步骤执行就可以了。如果需要安装软件,可以在本人上传资源处下载。
详细的部署windows的服务过程,和windows服务
在windows下搭建SVN服务器,通过实例一步一步的教会你如何搭建SVN服务器,有操作截图哟,并且还有错误示例以及解决办法,哈哈,希望我走过的弯路你不要再走了,哈哈哈,希望能帮到你...
svn客户端和服务器基本操作流程介绍. 1.基本概念 2.安装独立服务器SVNServer。 3.ApacheSVN和Subversion的区别
一个Windows下搭建SVN服务器的体会与步骤,上面有详细方法,可以帮助你成功的配置您的SVN服务器
有详细的安装步骤:https://blog.csdn.net/weixin_38642130/article/details/84932057 查阅了一些资料进行整理,记录学习之旅,分享给大家共同学习进步!
包括svn安装过程的截图步骤说明文档,已经需要的安装包,手把手教你在Windows下部署svn的服务器。有问题请联系博主。
1、获取svn程序 2、安装 Subversion(以下简称SVN)的服务器端和客户端。下载下来的服务器端是个 zip压缩包,直接解压缩即可,比如我解压到 E:\subversion 。客户端安装文件是个 exe 可执行文件,直接运行按提示安装...
由于公司的需要,需要搭建一个SVN服务器,文档里面有Server端和CLient端及汉化包及使用说明,并在虚拟机和本机上面新建两个不同的用户,每步都有自己的截图,希望大家少走弯路。