﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-bob-文章分类-apache</title><link>http://www.blogjava.net/keweibo/category/29662.html</link><description>&lt;script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"&gt;&lt;/script&gt;
&lt;!-- iteye 460 60 --&gt;
&lt;ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:60px"
     data-ad-client="ca-pub-2876867208357149"
     data-ad-slot="0418982663"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
</description><language>zh-cn</language><lastBuildDate>Fri, 30 Mar 2018 12:43:55 GMT</lastBuildDate><pubDate>Fri, 30 Mar 2018 12:43:55 GMT</pubDate><ttl>60</ttl><item><title>hadoop或hbase集群重启失效节点</title><link>http://www.blogjava.net/keweibo/articles/433135.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Fri, 30 Mar 2018 02:44:00 GMT</pubDate><guid>http://www.blogjava.net/keweibo/articles/433135.html</guid><wfw:comment>http://www.blogjava.net/keweibo/comments/433135.html</wfw:comment><comments>http://www.blogjava.net/keweibo/articles/433135.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/keweibo/comments/commentRss/433135.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/keweibo/services/trackbacks/433135.html</trackback:ping><description><![CDATA[<span style="color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">有时候hadoop或hbase集群运行时间久了后，某些节点就会失效，这个时候如果不想重启整个集群（这种情况在很多情况下已经不被允许），这个时候可以单独重启失效节点。</span><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;">HADOOP：<br style="box-sizing: border-box;" /><div style="margin: 0px; box-sizing: border-box;">hadoop中重启单节点的方法和增加新节点其实是一样的。</div><div style="margin: 0px; box-sizing: border-box;"><span style="font-family: Arial, sans-serif, Helvetica, Tahoma;"><strong>重启或添加节点</strong></span></div><div style="margin: 0px; box-sizing: border-box;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;"><br />$bin/hadoop-daemon.sh start datanode&nbsp;</span></div><div style="margin: 0px; box-sizing: border-box;"></div><div style="margin: 0px; box-sizing: border-box;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; font-family: Arial, sans-serif, Helvetica, Tahoma; line-height: 18px;">当然，添加的话需要copy配置文件到新节点。重启的话先</span><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">&nbsp;&nbsp;$bin/hadoop-daemon.sh stop datanode</span></div><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; line-height: 19px;"><br /><strong>重新balancer(可选)</strong></span></span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; line-height: 19px;"></span></span><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">$bin/hadoop balancer</span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">其实集群自己会balancer，当然也可以像上面那样手动balancer，不然在繁忙时段最好避免。</span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;"><br style="box-sizing: border-box;" /></span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;"><strong>HBASE：</strong></span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="color: #535353;">重启</span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">$bin/hbase-daemon.sh stop regionserver</span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">$bin/hbase-daemon.sh start regionserver<br /><br /></span></div><div style="margin: 0px; box-sizing: border-box; color: #454545; font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, SimHei, Arial, SimSun; font-size: 16px; background-color: #ffffff;"><span style="margin: 0px; padding: 0px; box-sizing: border-box; color: #535353; line-height: 19px;">也可以添加新的master（默认只有一个master），<br />$bin/hbase-daemon.sh start master</span></div><img src ="http://www.blogjava.net/keweibo/aggbug/433135.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/keweibo/" target="_blank">Ke</a> 2018-03-30 10:44 <a href="http://www.blogjava.net/keweibo/articles/433135.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Windows环境下的tomcat + apache配置(绝对实践操作版) </title><link>http://www.blogjava.net/keweibo/articles/182457.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Wed, 27 Feb 2008 04:19:00 GMT</pubDate><guid>http://www.blogjava.net/keweibo/articles/182457.html</guid><wfw:comment>http://www.blogjava.net/keweibo/comments/182457.html</wfw:comment><comments>http://www.blogjava.net/keweibo/articles/182457.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/keweibo/comments/commentRss/182457.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/keweibo/services/trackbacks/182457.html</trackback:ping><description><![CDATA[<span class="javascript" id="text172565">文章来源:<span style="color: red">http://www.cjsdn.net/post/view?bid=11&amp;id=172565&amp;sty=1&amp;tpg=1&amp;age=0<br />
</span><br />
Apache的HTTPD是目前比较受欢迎的网站服务器软件，它不但功能强大，而且完全免费，并且支持市场上流行的各种操作系统(Windows,Linux,Mac os)。同时对于Java Servlet/JSP的支持，通常也会使用同样Apache出品的Tomcat。<br />
Tomcat除了支持Java Servlet/JSP之外，也可以当做网站服务器使用，但是在对于静态的html文件、图片文件等的解析效率上不如Apache HTTPD的执行效率高。应用tomcat的服务器如果网站的访问量较大，系统资源占用会明显升高，近日笔者在项目执行过程中遇到这一问题，便也想到同时应用tomcat+apache服务。Apache负责静态资源处理，tomcat负责jsp和java servlet等动态资源的处理。在网上看了不少介绍Apache和Tomcat集成的帖子。大多为互相转贴，有几个关键问题没有讲清楚，并且多数文章讲解中所举的软件版本都已经比较老旧。因而笔者总结自己实际操作的经验，希望对大家有所帮助。<br />
<br />
准备工作：<br />
1、&nbsp;&nbsp;apache 2.0.55<br />
下载地址：http://apache.justdn.org/httpd/binaries/win32/apache_2.0.55-win32-x86-no_ssl.msi<br />
2、&nbsp;&nbsp;Tomcat 5.5<br />
下载地址：http://tomcat.apache.org/download-55.cgi<br />
3、&nbsp;&nbsp;JRE1.5.0 update6<br />
下载地址：http://java.sun.com/j2se/1.5.0/download.jsp<br />
你也可以选择安装JDK,JDK不仅包含了运行java应用程序的支持，同时也包含J2SE的开发包。但如果您只是应用的话，我建议您仅下载JRE即可，为什么？因为它小啊：）<br />
4、JK-apache-2.0.55<br />
下载地址：<br />
<a class="ilink" href="http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/mod_jk-apache-2.0.55.so" target="_blank">http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/mod_jk-apache-2.0.55.so</a><br />
注意jk的版本一定要与你的apache版本相同。Jk下载可以直接到apache.org官网下载，有多种版本，适用于各种操作系统，地址如下：<br />
<a class="ilink" href="http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/" target="_blank">http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/</a><br />
windows用户进入win32目录，不同的tomcat对应不同jk文件扩展名不同，有可能是*.dll,或者*.so，根据你的tomcat版本下载合适的jk版本。<br />
<br />
安装，软件的安装顺序可以适当调整，但是jre(jdk)一定要在tomcat之前安装：<br />
1、安装JRE(JDK)<br />
此处选择默认安装即可，(旧版本的JDK安装完之后需要设置系统的环境变量，JRE和JDK1.5.0以后版本不设置也没关系。)安装完成之后你可以选择按照下面的示例设置你的系统环境变量：我的电脑-&gt;右键属性-&gt;常规-&gt;高级-&gt;环境变量<br />
JAVA_HOME = d:\Java\jre1.5.0_06<br />
CLASSPATH = .;d:\Java\jre1.5.0_06\lib\dt.jar;d:\Java\jre1.5.0_06\lib\tools.jar<br />
PATH = d:\Java\jre1.5.0_06\bin<br />
注意文件路径要改成你实际安装的路径。<br />
<br />
2、Apache安装<br />
此处注意，如果你本机已经装了iis并且占用80端口,务必先在服务中将iis停止或禁用。软件默认安装即可。安装过程中设置Network Domain和Server Name为localhost,设置你的email地址，下方会让你选择only for the current user或for all users。默认选择for all users。这样Apache就会占用80端口，并且做为一个系统服务开机自运行。<br />
安装完成之后，你在浏览器中输入http://localhost,将会看到Apache的成功页面.Apache的主目录是d:\Apache\Apache2,此时Apache,已经运行,你可以在窗口的托盘看到他的图标,双击图标，在弹开的窗口选择"Open Apache Monitor",点Stop，停止Apaceh服务，因为下面要安装Tomcat和JK.<br />
<br />
3、Tomcat安装<br />
选择安装目录为了d:\Tomcat,其余为默认安装.成功后在浏览器中输入http://localhost:8080,出现Tomcat页面表示安装成功了。关于tomcat的设置已经有很多非常详细的文章，在此就不再详述了。<br />
<br />
4、JK的安装<br />
把mod_jk_2.0.55.so拷贝到d:\Apache\Apache2\modules\下.<br />
<br />
以上安装全部完成后,打开cmd命令提示符,运行d:\Apache\Apache2\bin\Apache.exe -t 你将会看到"Syntax OK"，表示Apache配置正常．这个命令非常有用，下面在继续配置Apache的时候还会再次用到。<br />
<br />
配置服务器：<br />
<br />
1、配置Tomcat<br />
查找目录下的conf/workers.properties文件，并对比下方文本内容，如有不同以下方内容为准修改。<br />
workers.tomcat_home=d:\Tomcat #让mod_jk模块知道Tomcat的位置<br />
workers.java_home=d:\Java\jre1.5.0_06 #让mod_jk模块知道jre的位置<br />
ps=\<br />
worker.list=ajp13 #模块版本<br />
worker.ajp13.port=8009 #工作端口,若没占用则不用修改<br />
worker.ajp13.host=localhost #本机,若上面的Apache主机不为localhost,作相应修改<br />
worker.ajp13.type=ajp13 #类型<br />
worker.ajp13.lbfactor=1 #代理数,不用修改<br />
<br />
如果文件不存在则创建。并填充上述内容。<br />
<br />
2、配置Apache<br />
打开d:\Apache\Apache2\conf下的httpd.conf，在最后加入下面这段代码并保存。<br />
#设置Apache与Tomcat之间的连接，让Apache遇到jsp文件时，在后台将其交由Tomcat去处理<br />
LoadModule jk_module modules/mod_jk_2.0.55.so<br />
#此处mod_jk的文件为你下载的文件<br />
JkWorkersFile "d:/Tomcat/conf/workers.properties"<br />
#指定tomcat监听配置文件地址<br />
JkLogFile "d:/Tomcat/logs/mod_jk2.log" <br />
#指定日志存放位置<br />
JkLogLevel info<br />
<br />
#设置虚拟主机<br />
&lt;VirtualHost localhost&gt;<br />
ServerAdmin localhost<br />
DocumentRoot d:/test1 <br />
#您的站点项目所在路径，应与tomcat中的目录设置相同<br />
ServerName localhost<br />
DirectoryIndex index.html index.htm index.jsp<br />
ErrorLog logs/shsc-error_log.txt<br />
CustomLog logs/shsc-access_log.txt common<br />
JkMount /servlet/* ajp13 <br />
#让Apache支持对servlet传送，用以Tomcat解析<br />
JkMount /*.jsp ajp13 <br />
#让Apache支持对jsp传送，用以Tomcat解析<br />
JkMount /*.do ajp13 <br />
#让Apache支持对.do传送，用以Tomcat解析<br />
&lt;/VirtualHost&gt;<br />
<br />
#开头的行为注释，可以删除。此处的配置我是以设置虚拟目录，重新指定了serverName,DocumentRoot路径的方式配置站点，实际上，Apache的配置可以非常灵活，你也可以不采用虚拟目录的方式，而直接去修改站点的默认配置，使用任意文本编辑工具，搜索如ServerName,DocumentRoot,ServerAdmin等相关项，然后将该项的配置根据你的实际情况进行修改即可。我建议大家可以多多尝试不同的配置，这是一种很有乐趣的体验。<br />
所有的修改完成这后，再次执行d:\Apache\Apache2\bin\Apache.exe -t 如果看到"Syntax OK"，说明你所有配置无误，双击窗口的托盘中的图标，然后点击Start运行。<br />
在地址栏中分别输入http://localhost/，与http://localhost:8080/若结果相同,Apache与Tomcat整合成功<br />
</span>
 <img src ="http://www.blogjava.net/keweibo/aggbug/182457.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/keweibo/" target="_blank">Ke</a> 2008-02-27 12:19 <a href="http://www.blogjava.net/keweibo/articles/182457.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Apache for Windows 安装</title><link>http://www.blogjava.net/keweibo/articles/181969.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Mon, 25 Feb 2008 05:33:00 GMT</pubDate><guid>http://www.blogjava.net/keweibo/articles/181969.html</guid><wfw:comment>http://www.blogjava.net/keweibo/comments/181969.html</wfw:comment><comments>http://www.blogjava.net/keweibo/articles/181969.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/keweibo/comments/commentRss/181969.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/keweibo/services/trackbacks/181969.html</trackback:ping><description><![CDATA[<p>1、下载 Apache for Windows</p>
<p>关于Apache最新版本的有关信息可以在http://httpd.apache.org/download.cgi上找到。你应该下载带有.msi扩展名的Apache for Windows版本。 这是一个单一的Microsoft Installer文件，包含了Apache ，可以立即安装并运行。</p>
<p>2、安装 Apache for Windows</p>
<p>运行已下载的上述Apache .msi文件。安装程序会要求提供下列信息：</p>
<p>Network Domain 你的服务器已经或者将要注册的DNS域名。比如你的服务器的全称DNS域名是server.mydomain.net ，你应当在这里输入：mydomain.net ，本地的话设置为localhost</p>
<p>Server Name 你的服务器的全称DNS域名，如上情况你应当在这里输入：server.mydomain.net，本地的话设置为localhost</p>
<p>Administrator's Email Address 服务器管理员的email地址。这个地址将会在默认的出错页面上显示给客户端。</p>
<p>For whom to install Apache 如果你希望Apache在80端口监听，并被安装为服务(即使无人登陆，Apache仍将运行)，就选择"for All Users, on Port 80, as a Service - Recommended"；如果你希望将Apache安装为个人试验使用，或者已经有一个运行于80端口的WWW服务器，就选择"only for the Current User, on Port 8080, when started Manually"。</p>
<p>The installation type 选择Typical会安装除开发模块需要使用的源码和库以外的所有内容。选择Custom可以自定义安装哪些项目。完整安装大约需要13MB磁盘空间，这其中并不包含你的网站文件所用空间。</p>
<p>Where to install 安装Apache的文件夹，默认为C:\Program Files\Apache Group文件夹下的Apache2子文件夹。也可以选择其他文件夹，比如：D:\Apache2.2</p>
<p>注意：安装之前，请完全卸载以前版本的Apache，并删除所有的目录与文件，这是因为新安装的配置文件不会覆盖旧的已经存在的配置文件，旧的文件可能导致Apache服务不能启动。</p>
 <img src ="http://www.blogjava.net/keweibo/aggbug/181969.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/keweibo/" target="_blank">Ke</a> 2008-02-25 13:33 <a href="http://www.blogjava.net/keweibo/articles/181969.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Windows下安装Apache服务器端Web软件</title><link>http://www.blogjava.net/keweibo/articles/181959.html</link><dc:creator>Ke</dc:creator><author>Ke</author><pubDate>Mon, 25 Feb 2008 04:48:00 GMT</pubDate><guid>http://www.blogjava.net/keweibo/articles/181959.html</guid><wfw:comment>http://www.blogjava.net/keweibo/comments/181959.html</wfw:comment><comments>http://www.blogjava.net/keweibo/articles/181959.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/keweibo/comments/commentRss/181959.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/keweibo/services/trackbacks/181959.html</trackback:ping><description><![CDATA[<div class="left_1">
<h1 align="center">在Windows下安装Apache服务器端Web软件</h1>
文章来源: http://sysapp.51cto.com/art/200508/1330.htm</div>
<div class="left_3">
<p>
<p>一、软件简介<br />
1．Apache是最流行的Web服务器端软件之一。快速、可靠、可通过简单的 API扩展，Perl/Python解释器可被编译到服务器中，完全免费，完全源代码开放。如果你需要创建一个每天有数百万人访问的Web服务器，Apache可能是最佳选择。</p>
<p>2．Apache Web Server Win32从版本1.3.17开始使用MSI（扩展名）的形式发布，MSI文件可以在Windows下直接运行，使用起来就和我们平常所用的那些EXE（扩展名）文件一样的方便。<br />
3．不过MSI文件这种新兴的东东也给使用微软较早发行的Win98和WinNT的用户带来了麻烦，当它们安装时系统会提示"无法通过Windows 安装程序服务安装此安装程序包。您必须安装带有更新版本Windows 安装程序服务的Windows Service Pack"，根本无法让你继续下去！--而在WinME和Win2K下面则不会有这种麻烦出现。<br />
4．要解决在Win98和WinNT下安装MSI文件不能完成的麻烦，你需要先有相应版本的名为"Microsoft Installer"的软件包，把它安装之后方可以开始MSI的安装工作。<br />
5．本文所需相关文件在光盘中的路径如下所示：<br />
（1）Apache HTTP Server Version 1.3：<a href="http://www.enanshan.com/down/apache_132.msi">http://www.enanshan.com/down/apache_132.msi</a>（2.95M）<br />
（2）Microsoft Installer 1.20 for WinNT4：<a href="http://www.enanshan.com/down/instmsiNT.exe">http://www.enanshan.com/down/instmsiNT.exe</a>（1485K）<br />
（3）Microsoft Installer 1.20 for Win9x/ME：<a href="http://www.enanshan.com/down/instmsi_9x.exe">http://www.enanshan.com/down/instmsi_9x.exe</a>（1472K）<br />
6．此软件为免费软件；本文测试环境为Windows 2000。<br />
7．确保此软件安装前已卸载（或停止服务）了其他的HTTP服务器端软件。 <br />
二、软件安装<br />
1．本机已升级成了域控制器，已拥有一个为"edu.enanshan.com"的域名；计算机名为"server"；完整的计算名为"server.edu.enanshan.com"。<br />
2．双击Apaceh的安装文件".msi"即可进入安装向导。<br />
3．当安装向导进行到"License Agreement"（协议许可）时，点选中"I accept the terms in the license agreement"（我接受这些协议）项后再按"Next"便能继续进行下一步操作。<br />
4．之后进入的是"Server Information"（服务器信息）的界面，对于域控制器，系统会自动填写各项的相关内容；如果没有，则需手动填入"Network Domain"（网络域名）、"Server Name"（服务器名）和"Administrator's Email Address"（管理员信箱）三项内容，然后才能选中"Run as a service for all Users"（所有用户使用的服务）项后按"Next"继续即可。</p>
<p align="center"><img class="fit-image" onmousewheel="javascript:return big(this)" style="width: 498px; zoom: 90%" src="http://sysapp.51cto.com/files/uploadimg/20050813/1134280.gif" onload="javascript:if(this.width  alt="" />498)this.style.width=498;"></p>
<p>5．接着便是选择安装类型（Setup Type）。Apache提供"Complte"（完全安装）和"Custom"（定制安装）两种安装方式，一般点选中"Complte"项继续（Next）进行完全安装。<br />
6．在"Destination Folder"（目标目录）中，系统默认将把Apache安装到"C:\Program Files\Apache Group"中，为了以后操作方便起见，建议将此处的安装路径用"Change"改变到"C:\"下。系统安装成功后将自动在此建立一个名为"Apache"的目录，也就是说，安装之后的实际Apache系统文件所在路径将为"C:\Apache"目录。<br />
7．其他各项均选默认选项即可完成最后安装！安装成功后需根据提示重新启动计算机。然后进入到控制面板中，打开"管理工具"中的"服务"，就可以看到Apache的服务已成功地处于运行状态了！<br />
8．此外，在开始菜单中的"程序"里也将有名为"Apache httpd Server"的组件，其下的"Configure Apache Server"（配置Apaceh服务器）项可以编辑配置文件和测试配置；"Control Apache Server" （控制Apaceh服务器）项可以开启、停止和重启动Apache的服务；"Review Server Log Files"（查看日志文件）中则可以查看Apache的系统日志文件等。<br />
9．当确信Apache已经安装成功并处于运行状态之后，则就可以直接打开浏览器，在地址栏输入"<a href="http://server/">http://server</a>"（服务器名）的格式，就可以调出你的第一个Apache页面罗！<br />
10．如欲卸载它，除了要到控制面板的"添加/删除程序"里找到"Apache HTTP Server Version 1.3.20"项去"删除"外，还需要将"C:\Apache"整个目录删掉才较为彻底。<br />
三、基本设置<br />
1．Apache的核心配置文件名是"httpd.conf"，其所存放的路径为"C:\Apache\conf"目录下。用记事本打开它后，对它进行修改后再保存便可达到配置Apache服务器的目的！<br />
2．由于配置文件"httpd.conf"决定着整个Apahce服务器的使用，因此对于它的修改千万要小心！强烈建议先做好多个备份，以防出错！如果实在忘了备份了，当错得无法还原时，系统还为你准备了个名为"httpd.default.conf"的备份文件，它是你初安装好Apache后系统自动做好的"httpd.conf"的备份。好在好在！我就差一点重装。<br />
3．更改主页路径<br />
（1）默认的，Apache主页文件存放在"C:\Apache\htdocs"目录下。<br />
（2）比如要想输入"<a href="http://server/">http://server</a>"（服务器名）即可调出"D:\Onlyme\wy"目录下的自己的主页文件，则先用记事本打开"C:\Apache\conf"目录下的"httpd.conf"文件，用"编辑"菜单中的"查找"功能，找到"DocumentRoot "C:/Apache/htdocs""一句，然后将半角引号中的"C:/Apache/htdocs"改成"D:/Onlyme/wy"（注册这里是"/"而不是"\"了）。</p>
<p align="center"><img class="fit-image" onmousewheel="javascript:return big(this)" style="width: 498px; zoom: 100%" src="http://sysapp.51cto.com/files/uploadimg/20050813/1134281.gif" onload="javascript:if(this.width  alt="" />498)this.style.width=498;"></p>
<p>4．好了，现在打开浏览器，输入"<a href="http://server/">http://server</a>"，看看出现什么！啊，"HTTP 404 没有找到"？天啦！哦，对了，还有默认主页文件名，Apache的只有一个"index.html"，你的是这名吗？反正我的不是，后面跟上文件名不就得了！所以现在还只得输入"<a href="http://server/index.htm">http://server/index.htm</a>"。该出来了吧！仍是不行？嗯，试试这样，在开始菜单中的"程序"里找到"Apache httpd Server"组件，再选其下"Control Apache Server"中的"Restart"重新运行一下Apache的HTTP服务。&#8230;&#8230;终于可以了！长出了一口气。<br />
5．不过呢，每次调用主页时都要输入文件名实在是麻烦！把我的"Index.htm"添加进去吧！好，还是需要宝贝的"httpd.conf"文件，寻找"DirectoryIndex index.html"行，这里放的就是默认调用的文件！在"index.html"的后面加入你的"index.htm"和其他类型，再保存即可。唯一需要注意的是，各文件类型之间都必须要用一个空格来分隔开！<br />
6．最后仍要提醒的是：改了配置后，如果未能生效，记住先用用"Restart"！</p>
</div>
<img src ="http://www.blogjava.net/keweibo/aggbug/181959.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/keweibo/" target="_blank">Ke</a> 2008-02-25 12:48 <a href="http://www.blogjava.net/keweibo/articles/181959.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>