tools download:
- apache_2.0.63-win32-x86-no_ssl.msi
address:http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.0.63-win32-x86-no_ssl.msi
- svn-1.4.5-setup.exe
address:http://subversion.tigris.org/files/documents/15/39559/svn-1.4.5-setup.exe
- TortoiseSVN. Use it to control the subversion tools.
Setup the software
- setup Apache. When it is installed completely. Use the browser and add the addresshttp://localhost
to check.
- setup svn-1.4.5-setup.exe. When the setup is finished. Open the cmd and add svn --version to check it is working or not.
config the svn
- create the file in the hard disk. E:\svnroot\MyProject
.And then use svnadmin create E:\svnroot\MyProject
command to create relative config file and folder .
If it can do ,you can see there are many files and folders which are created in the MyProject folder.
- open conf
folder, and then open svnserve.conf
file, find out the bottom line # password-db = passwd. And remove the
remark #,it means if you want to enter MyProject file ,you need
password.However, where to set our passwords. step 3
- open the anther file in the conf folder which is called passwd,and then use the text editor to add the following sentences.
写道
[users]
hadeslee=hadeslee1234
tom=123456
The
above sentences mean that we created two users.one is hadeslee,
password hadeslee1234 .And the other is tom ,password is 123456.
- create the file called access.auth
. And add the following sentences:
access.auth 写道
[MyProject:/]
hadeslee = rw
[MyProject:/module1]
tom=rw
hadeslee=rw
The
above sentences mean that hadeslee has the read and write authority to
control the MyProject and module1 folders.But tom only has the read and
write to control the module1 folder.
Config the apache
-
Enter Subversion home folder,find the follow two files in the bin folder.
mod_authz_svn.so
mod_dav_svn.so
copy these two files to the Apache home's modules folder.
- open Apache home's conf folder ,open httpd.conf file and add the following sentences:
httpd.cof 写道
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
and then remove the mark # before
httpd.conf 写道
LoadModule dav_module modules/mod_dav.so
- open the httpd.conf
file in the config folder,add the following consent:
httpd.conf写道
<Location /svn/MyProject>
DAV svn
SVNPath E:/svnroot/MyProject
AuthzSVNAccessFile E:/svnroot/MyProject/conf/access.auth
Satisfy Any
Require valid-user
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile E:/svnroot/MyProject/conf/users.auth
Require valid-user
</Location>
- generate users.auth file .Enter the apache home's bin folder, input the following commands:
D:\Program Files\Apache Group\Apache2\bin>
htpasswd -cb users.auth hadeslee hadeslee1234
Automatically using MD5 format.
Adding password for user hadeslee
D:\Program Files\Apache Group\Apache2\bin>
if you want to add another use ,use the following commands :
D:\Program Files\Apache Group\Apache2\bin>
htpasswd -b users.auth tom 123456
Automatically using MD5 format.
Adding password for user tom
D:\Program Files\Apache Group\Apache2\bin>
tip: c means to recreate the users.auth.
copy the users.auth to E:/svnroot/MyProject/conf/
Total, all is finished . open the browser and input the http://localhost/svn/MyProject
address to check
If you want to add other project in the subversion server.There are several suggestions:
- put the project in the MyProject folder ,you don't need to add any other setting .
- If
you want to create the other folder ,such as YourProject .You can add
<Location...>setting into httpd.conf file.Of course ,you should
also recreate the password.
eclipse config
add the eclipse plugin
address:
http://subclipse.tigris.org/update_1.4.x/
分享到:
相关推荐
下载:Apache Subversion command line tools 第二步解压 解压后会生成两个文件夹: bin,Licenses 第三步修改webstrom配置 IDEA-->setting-->version Control-->Subversion 路径填写第二步解压后文件夹...
对于SVN(Subversion),Apache可以通过Dav模块提供服务。你需要在Apache配置中启用`mod_dav_svn`模块,并设置仓库路径。例如: ```apache LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn...
访问官方下载页面:`http://subversion.apache.org/packages.html`,根据系统架构(32位或64位)选择合适的版本。例如,在32位Windows系统中,应选择`Win32Svn (32-bit client, server and bindings, MSI and ZIPs;...
Setting up repositories Reading repository metadata in from local files Installed Packages 4Suite.i386 1.0-8.b1 installed Canna.i386 3.7p3-13 installed Canna-devel.i386 3.7p3-13 installed ``` 2...
- **Version Control Integration**: How to integrate version control systems like Git or Subversion directly into Eclipse for seamless source code management. **Chapter 5: Building with Ant** - **...
Maven权威指南是一本关于Apache Maven的书。 Copyright 1. Creative Commons BY-ND-NC Foreword: Beta 0.16 Preface 1. How to Use this Book 2. Your Feedback 3. Font Conventions 4. Maven Writing ...