一、环境
1、操作系统:Windows XP
2、JDK:JDK 1.6.0
二、下载和安装
相关软件已经相应的网址:
软件 |
网址 |
备注 |
apache_2.2.14-win32-x86-openssl-0.9.8k.msi |
HTTP服务器软件 |
|
Setup-Subversion-1.6.6.msi |
SVN服务器 |
|
TortoiseSVN-1.6.12.20536-win32-svn-1.6.15.msi |
SVN客户端 |
三、Apache 2.2.14 安装
1、双击apache_2.2.14-win32-x86-openssl-0.9.8k.msi进行安装,在遇到下面对话框中输入内容:
2、一直按下一步,直到安装完成
3、有可能无法直接启动httpd服务(通常是因为80端口被其它应用程序占用了)。这时,请不要担心,导航到apache的安装路径,这里使用的是一个默认的安装路径:C:/Program Files/Apache Software Foundation/Apache2.2/conf配置文件:httpd.conf。
… ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2" # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the <VirtualHost> # directive. # # Change this to 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 be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need … |
4、Apache默认的监听商品是80端口,这里我把它改为8888。然后手动启动httpd服务:我的电脑 -> 控制面板 -> 管理工具 -> 服务。
5、现在你可以在你的浏览器中键入 http://localhost/,如果呈现了如下图片,那么你的Apache就安装成功了。