Installation and use of subversion

Source: Internet
Author: User
Tags openssl svn svn client tortoisesvn

First, the environment

1. Operating system: Windows XP

2, Jdk:jdk 1.6.0

Second, download and install

Relevant software has been the corresponding URL:

Software

Url

Note

Apache_2.2.14-win32-x86-openssl-0.9.8k.msi

http://archive.apache.org/dist/httpd/binaries/win32/

HTTP Server Software

Setup-subversion-1.6.6.msi

Http://subversion.tigris.org/servlets/ProjectDocumentList?

folderid=11151&expandfolder=11151&folderid=74

SVN server

Tortoisesvn-1.6.12.20536-win32-svn-1.6.15.msi

Http://www.duduwolf.com/post/setting_up_subversion.asp

SVN client

Three, Apache 2.2.14 installation

1, double-click Apache_2.2.14-win32-x86-openssl-0.9.8k.msi to install, in the Encounter the following dialog box to enter content:

2, keep pressing the next step until the installation is complete

3. It may not be possible to start the httpd service directly (usually because 80 ports are occupied by other applications). At this point, please do not worry, navigate to the Apache installation path, where a default installation path is used: C:/Program files/apache Software foundation/apache2.2/conf profile: httpd.conf.

...

ServerRoot "C:/Program files/apache Software foundation/apache2.2"

#

# Listen:allows to bind Apache to specific IP addresses and/or

# ports, instead of the default. Also the <VirtualHost>

# directive.

#

# Listen on specific IP addresses as shown below to

# Prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 8888

#

# Dynamic Shared Object (DSO) Support

#

# to is able to use the functionality of a module which is built as a DSO you

# have to place corresponding ' LoadModule ' lines in this location so the

# directives contained in it are actually available _before_ they are.

# statically compiled modules (those listed by ' httpd-l ') does not need

...

4, the Apache default listening product is 80 ports, here I change it to 8888. Then manually start the HTTPD service: My Computer-> Control Panel-> management tools-> Services.

5, now you can type http://localhost/in your browser, if the following picture is presented, then your Apache installation is successful.

Iv. Subversion Installation

1, double-click SVN installation files: Setup-subversion-1.6.6.msi, step-by-Step confirmation and can be installed successfully.

2. Add environment variables: Right-click My Computer-> Properties-> Advanced-> environment variable-> system variable-> variable path c:/program files/subversion/bin and C:/Program Files/apach E Software foundation/apache2.2/bin, the variable between the English semicolon ";".

3, restart the computer. Uninstall reinstall be sure to delete the original installation directory.

V. Configuration and application of SVN

1. Copy two SVN modules (mod_authz_svn.so, mod_dav_svn.so) from SVN's Bin directory to Apache's modules directory.

SVN Bin directory:

C:/Program Files/subversion/bin

Apache Modules Directory:

C:/Program Files/apache Software Foundation/apache2.2/modules

2. Modify Apache configuration file: httpd.conf (c:/program files/apache Software foundation/apache2.2/conf).

Note The bold font section, and the last location part is added to the last.

...

# Dynamic Shared Object (DSO) Support

#

# to is able to use the functionality of a module which is built as a DSO you

# have to place corresponding ' LoadModule ' lines in this location so the

# directives contained in it are actually available _before_ they.

# statically compiled modules (those listed by ' httpd-l ') does not need

# to being loaded here.

#

# Example:

# LoadModule Foo_module modules/mod_foo.so

#

LoadModule Actions_module modules/mod_actions.so

LoadModule Alias_module modules/mod_alias.so

LoadModule Asis_module modules/mod_asis.so

LoadModule Auth_basic_module modules/mod_auth_basic.so

#LoadModule Auth_digest_module modules/mod_auth_digest.so

#LoadModule Authn_alias_module modules/mod_authn_alias.so

#LoadModule Authn_anon_module modules/mod_authn_anon.so

#LoadModule Authn_dbd_module modules/mod_authn_dbd.so

#LoadModule Authn_dbm_module modules/mod_authn_dbm.so

LoadModule Authn_default_module modules/mod_authn_default.so

LoadModule Authn_file_module modules/mod_authn_file.so

#LoadModule Authnz_ldap_module modules/mod_authnz_ldap.so

#LoadModule Authz_dbm_module modules/mod_authz_dbm.so

LoadModule Authz_default_module modules/mod_authz_default.so

LoadModule Authz_groupfile_module modules/mod_authz_groupfile.so

LoadModule Authz_host_module modules/mod_authz_host.so

#LoadModule Authz_owner_module modules/mod_authz_owner.so

LoadModule Authz_user_module modules/mod_authz_user.so

LoadModule Autoindex_module modules/mod_autoindex.so

#LoadModule Cache_module modules/mod_cache.so

#LoadModule Cern_meta_module modules/mod_cern_meta.so

LoadModule Cgi_module modules/mod_cgi.so

#LoadModule Charset_lite_module modules/mod_charset_lite.so

LoadModule dav_module modules/mod_dav.so

LoadModule dav_fs_module modules/mod_dav_fs.so

#LoadModule Dav_lock_module modules/mod_dav_lock.so

#LoadModule Dbd_module modules/mod_dbd.so

#LoadModule Deflate_module modules/mod_deflate.so

LoadModule Dir_module modules/mod_dir.so

#LoadModule Disk_cache_module modules/mod_disk_cache.so

#LoadModule Dumpio_module modules/mod_dumpio.so

LoadModule Env_module modules/mod_env.so

#LoadModule Expires_module modules/mod_expires.so

#LoadModule Ext_filter_module modules/mod_ext_filter.so

#LoadModule File_cache_module modules/mod_file_cache.so

#LoadModule Filter_module modules/mod_filter.so

#LoadModule Headers_module modules/mod_headers.so

#LoadModule Ident_module modules/mod_ident.so

#LoadModule Imagemap_module modules/mod_imagemap.so

LoadModule Include_module modules/mod_include.so

#LoadModule Info_module modules/mod_info.so

LoadModule Isapi_module modules/mod_isapi.so

#LoadModule Ldap_module modules/mod_ldap.so

#LoadModule Logio_module modules/mod_logio.so

LoadModule Log_config_module modules/mod_log_config.so

#LoadModule Log_forensic_module modules/mod_log_forensic.so

#LoadModule Mem_cache_module modules/mod_mem_cache.so

LoadModule Mime_module modules/mod_mime.so

#LoadModule Mime_magic_module modules/mod_mime_magic.so

LoadModule Negotiation_module modules/mod_negotiation.so

#LoadModule Proxy_module modules/mod_proxy.so

#LoadModule Proxy_ajp_module modules/mod_proxy_ajp.so

#LoadModule Proxy_balancer_module modules/mod_proxy_balancer.so

#LoadModule Proxy_connect_module modules/mod_proxy_connect.so

#LoadModule Proxy_ftp_module modules/mod_proxy_ftp.so

#LoadModule Proxy_http_module modules/mod_proxy_http.so

#LoadModule Rewrite_module modules/mod_rewrite.so

LoadModule Setenvif_module modules/mod_setenvif.so

#LoadModule Speling_module modules/mod_speling.so

#LoadModule Ssl_module modules/mod_ssl.so

#LoadModule Status_module modules/mod_status.so

#LoadModule Substitute_module modules/mod_substitute.so

#LoadModule Unique_id_module modules/mod_unique_id.so

#LoadModule Userdir_module modules/mod_userdir.so

#LoadModule Usertrack_module modules/mod_usertrack.so

#LoadModule Version_module modules/mod_version.so

#LoadModule Vhost_alias_module modules/mod_vhost_alias.so

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

<ifmodule!mpm_netware_module>

<ifmodule!mpm_winnt_module>

...

<Location/svn/>

Dav SVN

Svnparentpath "E:/svn/repository"

authtype Basic

authname "Icil SVN"

Svnlistparentpath on

authuserfile "E:/svn/userfile.txt"

authzsvnaccessfile "E:/svn/accessfile.txt"

Require Valid-user

</Location>

Redirectmatch ^ (/SVN) $ $1/

Comments:

SVNPARENTPATH--SVN Coogan directory (manually created) path where you can create multiple versions of libraries below;

AuthUserFile--------User account information file (create file userfile.txt with htpasswd command);

authzsvnaccessfile--permission control file (created manually);

Redirectmatch ^ (/SVN) $ $1/-----------Redirect Path (/svn directed to/svn/) so that access to the library list can be accessed through HTTP://IP:PORT/SVN.

3. Create an SVN version library. Create a library with the Svnadmin command. By following the figure you will find a MyProject folder in E:/svn/repository.

Note: You first have to navigate to Svnparentpath:e:/svn/repository then run the command.

4. Create SVN user account file. In the Apache configuration file we set the AuthUserFile path: C:/svn/userfile.txt, now navigate to the folder in the DOS command line: e:/svn/Run command: Htpasswd–c userfile.txt Username creates a user account file and creates an initial account.

Note:-C parameter represents creating a user account file, the next time you create another account will not need this parameter.

5. Create a rights control file.

In the configuration file we set the Authzsvnaccessfile path: c:/svn/accessfile.txt, now we create the text file manually, and enter the following:

[/]

*=rw

[test:/]

Admin=rw

Huahua=rw

6, the last restart the Apache service.

Then try to access the SVN version library in the browser: Http://localhost:8888/svn/Project. If you see the following picture, you are successful.

VI. Client TortoiseSVN-1.6 Installation

1, double-click Tortoisesvn-1.6.12.20536-win32-svn-1.6.15.msi, click Next until the installation is complete.

2, if the right click a folder appears as the following red box results, that is, successful installation.

Seven, SVN application

1, import the source code to the SVN server:

A, right click the project, click the following red Box Import section.

B, "Import" is displayed as:

C, the input upload address http://ip:port/custom path, OK, as follows

D, enter the previously configured permissions file account number and password, after determining the following figure:

2. Export source code from SVN server to Local:

A, find a blank area, right click the mouse, the following figure appears:

B, click on "Export" to get:

C, click "OK", get the following figure, and enter the account number and password:

Eight, view SVN through the client browser

The imported source code is encrypted and needs to be seen and done by the SVN client browser. Right-click the mouse to get the following figure:

Nine, to sum up

1, SVN is currently the more popular open source version management tool, it is worth trying to configure

2, the above content describes the configuration of the server and client two parts.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.