SVN一条龙(版本库创建、启动后台服务、客户端)
2007-09-06 21:44
573 查看
操作系统
Windows XP SP2
SVN相关下载
(见后附相关资源)
服务器安装
运行“svn-1.4.5-setup.exe”,或直接解压“svn-win32-1.4.5.zip”
版本库创建
命令如下,其中C:/svnroot/MyRepo为要创建的版本库放置的目录位置
svnadmin.exe create C:/svnroot/MyRepo
版本库配置
服务器配置文件“conf/svnserve.conf”
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
[general]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 密码数据文件名
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
password-db = passwd
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 匿名用户可读
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
# anon-access = read
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 认证用户可写
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
# auth-access = write
密码数据文件“conf/passwd”
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
[users]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 用户名 = 密码
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
harry = harryssecret
服务器启动运行
1.直接运行执行如下命令,默认以服务器根目录为版本库根目录,访问时需要版本库文件夹的完整路径
svnserve.exe -d
2.指定版本库根目录
svnserve.exe -d -r C:/svnroot
3.将SVN作为Window服务运行(Subversion1.4以上版本)
sc.exe create SVNService binpath= "C:/svn-win32-1.4.5/bin/svnserve.exe --service -r C:/svnroot" depend= tcpip
注意:
等号前无空格后有空格。
应使用参数“--service”而不是“-d”,参数前面的横线不是一个是两个。
binpath内套的路径如果包含空格,也需要使用双引号,此时需要使用转义符表示内部的引号(/")。
4.使用“SVNService.exe”将SVN作为Window服务运行(Subversion1.4之前版本也可使用)
SVNService.exe -install -d -r C:/svnroot
注意:
用法与使用“svnserve.exe”类似,区别仅仅是把“svnserve.exe”换成“SVNService.exe -install”。
把“-install”替换为“-setup”和“-remove”可修改和删除服务。
客户端安装与运行
安装运行“TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi”
安装语言包运行“LanguagePack-1.4.5.10425-win32-zh_CN.exe”
Eclipse插件Subclipse安装
Eclipse插件在线更新地址:
For Eclipse 3.0/3.1 http://subclipse.tigris.org/update_1.0.x
For Eclipse 3.2+ http://subclipse.tigris.org/update_1.2.x
相关资源
Subversion http://subversion.tigris.org/
TortoiseSVN http://tortoisesvn.net/downloads http://tortoisesvn.tigris.org/
Svn1ClickSetup http://svn1clicksetup.tigris.org/
Subclipse http://subclipse.tigris.org/
Subversion中文站 http://www.subversion.org.cn/
Windows XP SP2
SVN相关下载
(见后附相关资源)
服务器安装
运行“svn-1.4.5-setup.exe”,或直接解压“svn-win32-1.4.5.zip”
版本库创建
命令如下,其中C:/svnroot/MyRepo为要创建的版本库放置的目录位置
svnadmin.exe create C:/svnroot/MyRepo
版本库配置
服务器配置文件“conf/svnserve.conf”
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
[general]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 密码数据文件名
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
password-db = passwd
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 匿名用户可读
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
# anon-access = read
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 认证用户可写
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
# auth-access = write
密码数据文件“conf/passwd”
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
[users]
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
## 用户名 = 密码
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
harry = harryssecret
服务器启动运行
1.直接运行执行如下命令,默认以服务器根目录为版本库根目录,访问时需要版本库文件夹的完整路径
svnserve.exe -d
2.指定版本库根目录
svnserve.exe -d -r C:/svnroot
3.将SVN作为Window服务运行(Subversion1.4以上版本)
sc.exe create SVNService binpath= "C:/svn-win32-1.4.5/bin/svnserve.exe --service -r C:/svnroot" depend= tcpip
注意:
等号前无空格后有空格。
应使用参数“--service”而不是“-d”,参数前面的横线不是一个是两个。
binpath内套的路径如果包含空格,也需要使用双引号,此时需要使用转义符表示内部的引号(/")。
4.使用“SVNService.exe”将SVN作为Window服务运行(Subversion1.4之前版本也可使用)
SVNService.exe -install -d -r C:/svnroot
注意:
用法与使用“svnserve.exe”类似,区别仅仅是把“svnserve.exe”换成“SVNService.exe -install”。
把“-install”替换为“-setup”和“-remove”可修改和删除服务。
客户端安装与运行
安装运行“TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi”
安装语言包运行“LanguagePack-1.4.5.10425-win32-zh_CN.exe”
Eclipse插件Subclipse安装
Eclipse插件在线更新地址:
For Eclipse 3.0/3.1 http://subclipse.tigris.org/update_1.0.x
For Eclipse 3.2+ http://subclipse.tigris.org/update_1.2.x
相关资源
Subversion http://subversion.tigris.org/
TortoiseSVN http://tortoisesvn.net/downloads http://tortoisesvn.tigris.org/
Svn1ClickSetup http://svn1clicksetup.tigris.org/
Subclipse http://subclipse.tigris.org/
Subversion中文站 http://www.subversion.org.cn/
相关文章推荐
- 创建SVN服务--开机启动SVN
- 备份完成后,启动svn,对外提供版本库服务
- 使用electron开发一个h5的客户端应用创建http服务模拟后台接口mock
- 使用sc.exe创建SVN后台服务
- sourceoffsite,sos_collab,版本控制,安装过程中不能创建数据,相关服务无法启动
- svn安装 启动svn服务客户端访问等
- 使用sc.exe创建SVN后台服务
- 创建基于HTTP协议的SVN版本控制服务(Apache)
- 将SVN Server 创建成后台服务
- 版本控制之svn启动服务
- SVN的学习之路三(注册和启动服务)
- SVN的学习之路三(注册和启动服务)
- 转 android客户端版本检测更新,服务下载,通知栏显示
- windows 无法启动svnservice 服务 1053
- C#Windows Service服务程序的安装/卸载、启动/停止 桌面客户端管理程序设计
- SVN版本库的创建、配置与Apache的整合
- windows 创建/启动/删除系统服务
- 如何创建 启动关闭MS SQL 2005服务BAT?
- svn更改默认服务启动目录
- Android5.0 输入系统(一)————InputManagerService服务及相关对象的创建与启动