准備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了