1)PORT设置Apache Web Server运行时使用的端口号,由于我这里的IIS也在运行,IIS使用了80端口号,于是我把它改成Port 8080,以后在浏览器上输入http://localhost:8080/才能访问到Apache Web Server服务器,输入http://localhost/时能访问到IIS,这样两个Web Server都可以用了哦,我用$APACHE_PORT标识; 2)DocumentRoot设置文档根目录,当您在浏览器上输入http://localhost:$APACHE_PORT/时,服务器会从文档根目录读取数据,由于我的程序都放在D:HZQ下,所以我把DocumentRoot设置为D:/HZQ;
3、Apache安装完后在"开始->程序"菜单组中多了Apache Web Server菜单组,运行其中的Install Apache as a service,这样的话在"开始->设置->控制面板->服务"中就多了一个名为Apache的服务,您可以用它来启动或停止Apache服务;
# # $Header: /home/cvs/jakarta-tomcat/src/etc/wrapper.properties,v 1.1 #2000/05/03 11:54:49 shachor Exp $ # $Revision: 1.1 $ # $Date: 2000/05/03 11:54:49 $ # # # jk_service.properties - a bootstrup file for the Tomcat NT service. # # This file provides jk_nt_service with the needed information to # start tomcat at a different process. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)something # # the final value for y will be valuesomething # # Normaly all you will need to modify is the first two properties, i.e. # wrapper.tomcat_home and wrapper.java_home. Most of the configuration # is derived from these two. # # # wrapper.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # wrapper.tomcat_home=d:tomcat # # wrapper.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # wrapper.java_home=d:JBuilder35jdk1.2.2 # #------ ADVANCED MODE ------------------------------------------------ # Make sure that you read the how-to before making too many changes. #--------------------------------------------------------------------- # # # Defining where the service is going to put the standard # output of Tomcat. This is where System.out.println and # System.err.println goes to. # wrapper.stdout=$(wrapper.tomcat_home)jvm.stdout wrapper.stderr=$(wrapper.tomcat_home)jvm.stderr # # Additions to the path. put here directories where you store DLLs for # native methods etc. # wrapper.ld_path=d: wrapper.ld_path=c: # # Defining the classpath. All the rows that belongs to the class_path # property are concatenated to create the classpath for Tomcat. # # If you have additional locations that you would like to add to the # claspath you should add a new wrapper.class_path=<location> line. # wrapper.class_path=$(wrapper.tomcat_home)classes wrapper.class_path=$(wrapper.tomcat_home)libxml.jar wrapper.class_path=$(wrapper.tomcat_home)libwebserver.jar wrapper.class_path=$(wrapper.tomcat_home)libservlet.jar wrapper.class_path=$(wrapper.tomcat_home)libjasper.jar # # This is where Javac is located in JDK1.2.x # wrapper.class_path=$(wrapper.java_home)libtools.jar # # and a tribute to JDK1.1.x # wrapper.class_path=$(wrapper.java_home)libclasses.zip # # This is the Java interpreter used for running Tomcat # wrapper.javabin=$(wrapper.java_home)binjava.exe # # This is Tomcat's startup class (the class that contains Tomcat's # starting point. # wrapper.startup_class=org.apache.tomcat.startup.Tomcat # # This is the location where tomcat's server.xml configuration file # is located. # wrapper.server_xml=$(wrapper.tomcat_home)confserver.xml # # The NT service uses AJP12 to shutdown Tomcat. The wrapper.shutdown_port # tells the service the identity of the port that is used by AJP12. # wrapper.shutdown_port=8007 # # This is the command line that is used to start Tomcat. You can *add* extra
# parameters to it but you can not remove anything. # wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) $(wrapp er.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home)