幸せのちから

平凡的世界
看似平常实崎岖
成如容易却艰辛

subversion安装

1. 从CollabNet下载subversion的Windows版
http://downloads.open.collab.net/collabnet-subversion.html
2. 使用svnserve模式安装,指定仓库位置: d:\svn_repository
3. run->cmd打开命令行窗口
4. 创建一个subversion的仓库
cd
svnadmin create
E.g.
cd d:\svn_repository
svnadmin create repository
5. 修改密码
编辑svnserve.conf文件
E.g. d:\svn_repository\repository\conf\svnserve.conf,
找到下面的信息
### 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 conf directory.
### Uncomment the line below to use the default password file.
#password-db = passwd
去掉password-db前的#号
password-db = passwd
6. 增加用户名和密码
编辑svnserve.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
例如:
lucky = ××××
7. 打开Windows防火墙的屏蔽.
参考文件
http://www.microsoft.com/windowsxp/using/security/internet/sp2_wfexceptions.mspx
在例外中添加subversion使用的svnserve.exe,或者增加例外的端口:3690.
8. 运行svnserve
可以使用windows的服务或者使用命令行
net start svnserve
9. 对匿名用户指定读权限,修改conf/svnserve.conf文件
anon-access = write
10. Checkout仓库
svn co svn://localhost/
E.g. svn co svn://localhost/repository
11. 权限设置
编辑svnserve.conf同一目录下的'authz'文件,在下面信息的后面追加用户名和密码:
[groups]
dev = lucky,jiang,yu

[repository:/]
lucky= rw
* = r

[repository:/ECOMockup]
@dev= rw
* = r
上面的设置表示 在根目录 只有lucky有读写的权力,其他人都是只读。 在根目录下的/ECOMockup工程dev小组有读写的权力 其他的就是只读。

svn import -m "first import of AARKeywords" C:\Usr\THA\AARKeywods http://localhost/svn/AARKeywords

posted on 2008-11-12 14:16 Lucky 阅读(457) 评论(0)  编辑  收藏 所属分类: java


只有注册用户登录后才能发表评论。


网站导航:
 
<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

导航

随笔分类(125)

文章分类(5)

日本語

搜索

积分与排名

最新随笔

最新评论