Wamp2 + SVN + Eclipse 配置
准备wamp2 svn-1.4.6,TortoiseSVN-1.4.8,LanguagePack-1.4.8.12137-win32-zh_CN.exe
1. 安装wamp2
2. 安装TortoiseSVN-1.4.8重启安装中文包LanguagePack-1.4.8.12137-win32-zh_CN.exe
3.D盘建立svn文件夹(svn文件夹位置可随意,不一定D盘),里面建立文件夹www右击在此创建版本库
4. 解压svn-win32-1.4.6.zip到C:svn-1.4.6,复制intl3_svn.dll, libdb44.dll到Apache的bin目录;
拷贝mod_authz_svn.so, mod_dav_svn.so到Apache的modules目录
5. 修改apache httpd.conf
去掉#打开对DAV的屏蔽,内容如下:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
另外在下面增加两行:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
6. 创建用户验证口令
进dos转到apache的bin目录(几条常用dos命令cd ../.. 为返回前两级目录 dir为显示目录 c:>f:为进到f盘
copy passwd d: 把密码复制到D盘)
htpasswd -c passwd admin
其中admin就是唯一用户我自己,2次输入口令后,生成passwd文件。
把密码复制到D盘 copy passwd d:
更改D盘svn/www/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
admin = 123
更改D盘svn/www/conf/authz
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to a
### single user, to a group of users defined in a special [groups]
### section, or to anyone using the * wildcard. Each definition can
### grant read (r) access, read-write (rw) access, or no access
### ().
[groups]
# harry_and_sally = harry,sally
group_admin = admin
[/]
@group_admin = rw
# [/foo/bar]
# harry = rw
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
8. 在httpd.conf末尾增加以下内容
<Location /svn>
DAV svn
SVNParentPath D:SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile D:passwd
#AuthzSVNAccessFile D:svnaccessfile
Require valid-user
</Location>
9. 重新启动wamp2服务。在浏览器中敲入http://localhost/svn/www,测试svn服务其有没有配置成功。,
启动svn服务进入svn的bin目录 运行 SVNService -install -d -r
10. 打开Eclipse,安装Subeclipse svn插件。
Help->Software Updates->Find and Install->Search for new features to install->Next->New Remote Site,输入
Name: Subclipse
URL: http://subclipse.tigris.org/update
点击Finish,然后下载,然后一路安装,重新启动Eclipse
11. 配置Eclipse svn,Windows->Preferences->Team->SVN,将SVN接口设为JavaSVN
12. 新建一个Java项目,然后右键Team->Share Project->SVN
URL: http://localhost/svn/repos
输入用户名、口令
o了
补充:Web开发 , php ,