




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Windows下Subversion和TortoiseSVN构建SVN版本控制2009-06-05 来源:网络1.下载Subversion的window安装版本svn-1.4.6-setup.exe//servlets/ProjectDocumentList?folderID=81002.下载TortoiseSVN的TortoiseSVN-3595-win32-svn-1.5.1.msi版本//downloads3.安装subversion双击svn-1.4.6-setup.exe,一路next完成安装。设置环境变量,将subversion对bin设置到path中。如:D:Program FilesSubversionbin4.安装TortoiseSVN双击TortoiseSVN-3595-win32-svn-1.5.1.msi,一路next完成安装。5.创建svn容器Repository在硬盘上任意位置创建一文件夹,如D:svnRepository,在文件夹上右键TortoiseSVN-Create repository here创建成功后将在D:svnRepository下生成一系列文件。6.配置容器的访问权限在容器的目录下D:svnRepository的conf中,用记事本打开svnserve.conf文件,找到# anon-access = read# auth-access = write# password-db = passwd并去掉注释#注意,去掉注释后,不要留下空格,保持每行顶格,切记!效果如下:# This file controls the configuration of the svnserve daemon, if you# use it to allow access to this repository. (If you only allow# access through http: and/or file: URLs, then this file is# irrelevant.)# Visit / for more information.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 = readauth-access = write# The password-db option controls the location of the password# database file. Unless you specify a path starting with a /,# the files 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 files location is relative to the the# directory containing this file. If you dont 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.# If two repositories have the same authentication realm, they should# have the same password database, and vice versa. The default realm# is repositorys uuid.# realm = My First Repositorysasl# This option specifies whether you want to use the Cyrus SASL# library for authentication. Default is false.# This section will be ignored if svnserve is not built with Cyrus# SASL support; to check, run svnserve -version and look for a line# reading Cyrus SASL authentication is available.# use-sasl = true# These options specify the desired strength of the security layer# that you want SASL to provide. 0 means no encryption, 1 means# integrity-checking only, values larger than 1 are correlated# to the effective key length for encryption (e.g. 128 means 128-bit# encryption). The values below are the defaults.# min-encryption = 0# max-encryption = 256配置访问用户列表,用户名加密码记事本打开该目录下的文件passwd去掉# harry = harryssecret# sally = sallyssecret的注释#,同意注意每行要顶格,开头也不能有空格。说明harry = harryssecret表示:用户名=密码当然也可以自己增加,如gary=gary最好效果如下:# 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.usersharry=harryssecretsally=sallyssecretgary=gary7.启动Subversion因为之前设置了环境变量path= D:Program FilesSubversionbin;因此打开cmd,直接运行命令:svnserve -d -r D:svnRepository这样Subversion服务器就假设好了。8.向容器添加需版本控制的文件(也可以远程,只需url为ip就行)在硬盘上任意位置,右键需要上传的文件的上级文件夹,TortoiseSVN-Import此处为了测试,创建文件夹D:importFiles,里面放一doc文件test.doc,即要将test.doc上传到svn中去。右键importFiles,TortoiseSVN-Import,输入容器的url:svn:/localhost/svnRepository输入用户名和密码:就将test.doc文件上传到svn容器了9.从容器获得test.doc文件(也可以远程,只需url为ip就行)在任意位置,某文件上右键D:checkOutFiles,点击SVN Checkout输入url即可10.完成这样就完成的部署和存取,修改相应的文件,提交即可,注意始终保持Subversion的运行。注意,在第8步中会报错“期望文件系统格式“2”;发现格式“3”原因是TortoisSVN的版本过高,或与Subversion不匹配。应该换成低版本的TortoisSVN 用TortoiseSVN-2137-win32-svn-1.4.6.msi即应该为svn-1.4.6-setup.exe和TortoiseSVN-2137-win32-svn-1.4.6.msi的组合才行,步骤和之前的一样,只是在第6步中的svnserve.conf文件中没有后面的内容sasl# This option specifies whether you want to use the Cyrus SASL# library for authentication. Default is false.# This section will be ignored if svnserve is not built with Cyrus# SASL support; to check, run svnserve -version and look for a line# reading Cyrus SASL authentication is available.# use-sasl = true# These options specify the desired strength of the security layer# that you want SASL to provide. 0 means no en
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 美术教育活动策划
- 建筑建筑市场规划建筑装饰市场趋势分析
- 2025年贵州省福泉市辅警人员招聘考试题库及答案
- 2025年广西北海市辅警人员招聘考试题库及答案
- 2025年福建省继续教育公需科目试题及答案
- 2025年北京市辅警招聘考试题题库(含参考答案)
- 2025年安徽省亳州市辅警招聘考试题题库(含参考答案)
- 2025年云南武定县教育体育局局直属事业单位招考笔试高频难、易错点备考题库及参考答案详解1套
- 执业药师之《药事管理与法规》试题预测试卷附答案详解【培优b卷】
- 连锁餐饮企业数字化运营效率提升与2025年营销策略研究报告
- 2025年公共营养师三级考试试卷及答案
- 开工前安全培训教学课件
- 2025年皮肤科学常见皮肤病鉴别诊断练习试卷答案及解析
- 高铁隧道配套施工方案
- 足浴前台礼仪培训课件
- 三人合伙工程合同协议书
- 2025曲靖市事业单位定向招聘驻曲部队未就业随军家属(8人)备考练习试题及答案解析
- 2025广西现代物流集团第三次招聘109人笔试备考题库及答案解析
- 入住敬老院协议合同模板
- 急危重孕产妇的救治课件
- 家政服务企业社会责任报告样本
评论
0/150
提交评论