1. 综述:
EasyCM包括:
Subversion,最好的免费的版本控制工具;
Trac,一个很不错的与Subversion集成的缺陷跟踪工具;
TortoiseSVN,Subversion的图形化客户端;
Apache,最流行的Web Server,以支持Subversion和Trac;
等等。
EasyCM 可以帮助我们快速构建版本控制,缺陷跟踪等方法的实现。
2. 资源下载:http://sourceforge.net/projects/easycm/
3. 安装:
下载后直接解压安装。
注意:但需要卸载本机以前安装的Apache,Subversion,TortoiseSVN 工具,防止冲突。
4. 配置SVN 服务器的方法:
安装后在EasyCM 的解压目录下 \EasyCM\auth 有三个文件:
htpasswd.exe: 该文件实现添加或删除用户的功能(在命令行下,到该目录下,输入 htpasswd,即显示相应帮助,可以进行用户管理操作);
svn_rules: 从该文件名可以看出是用来配置SVN 的,用文本编辑器打开该文件,会出现类似下面的内容:(蓝色字体为本人做的注释。)
#Pls see section “Path-Based Authorization” in chapter “Server Configuration” in SVN Help Doc for details.
#该部分定义用户组,其中用户信息存储在 users 文件里面。
#here we define groups.
[groups]
#’group_test’ is a group which contains user ‘test’, ‘test2’, ‘guest’, ‘user’, and ‘admin’.
group_test = test, test2, guest, user, admin, zyl
#该部分定义SVN 里面 仓库的访问权限,所用用户对仓库都有读取权限。
#here we define the access rule to see the list of repositories, which is also the base rule for each repository
[/]
#All all named users and anonymous could see the list of repositories.
#And they could read in each repository, if not be forbiddend later.
* = r
#该部分定义SVN 里面 仓库的访问权限,此处安装后默认存在,示例仓库。可以通过# # # http://localhost/svn/repos_test/ 访问该库。
#here we define the access rules for directory ‘/‘(root directory) in repository ‘repos_test’
[repos_test:/]
#Group ‘group_test’ could write in this directory.
#While other named users and anonymous could read, as mentioned above.
@group_test = rw
#如果需要添加新的仓库,就复制上面对repos_test仓库的定义,如下,定义了Pro1 仓库。可以通过# # # http://localhost/svn/Pro1/ 访问该库。
#here we define the access rules for directory ‘/‘(root directory) in repository ‘Pro1’
[Pro1:/]
#Group ‘group_test’ could write in this directory.
#While other named users and anonymous could read, as mentioned above.
@group_test = rw
Users: 很容易理解,就是用户信息了。类似下面代码,添加成功的用户信息也会被放在这个地方。
test:$apr1$xX3.....$YKjzVCrjg/BFPaKsP2fL/.
test2:$apr1$8Y3.....$kn8jd1v279JVLCc656Ikw0
guest:$apr1$OY3.....$u41wJUtBln0ojzoxaxUip/
user:$apr1$0Z3.....$pDIMrzR9AEHehEbWihrxc1
admin:$apr1$YY3.....$cGilRYD4cJcoO77AXzgm8.
zyl:$apr1$M93.....$Xr79TEBx/FHn113IaB5qy. #自己新添加的用户。