1::安装TomCat    1.下载jdk1.3和tomcat; 
   2.安装jdk1.3和解压tomcat到c:盘根目录下; 
   3.进入tomcat的目录里,找到startup.bat文件,打开编辑。 
     在行call tomcat start的前面加上两行: 
     SET TOMCAT_HOME=c:\tomcat 和 SET JAVA_HOME=c:\jdk1.3 
     注:c:\jdk1.3是jdk1.3安装的位置。(!!!注意后面不能有多余的空格!!!!!!) 
   4.然后鼠标右键点击“我的电脑”,选择属性。在系统属性中打开高级选项,点击"环境变量",在“用户变量”和“系统变   量”中都加入两个变量classpath和path,它们的值是: 
  classpath的值c:\jdk1.3\bin\tools.jar;C:\jdk1.3\lib\dt.jar 
  path的值为 c:\jdk1.3\bin;c:\jdk1.3 
  5.运行tomcat服务器(即startup.bat文件),假如有个dos窗口停留着没关闭,并有一些运行成功tomcat和初始化信息,证明tomcat运行成功。 
  6.ie地址栏中输入127.0.0.1:8080,假如成功的话,就会出现tomcat的欢迎画面,上面有一些jsp和servlet的例子,至此jsp环境搭建完成。 
__________________________
2::Jsp Install
_______Unix_____  no try可以把tomcat加入到apache中 方法:
先确定apache和tomcat都可以正常运行
把和tomcat一起的一个叫(好象)mod_jserv.so的文件,把他cp到apache/libexec下
把tomcat/conf/tomcat.conf cp 到apache/conf下
在httpd.conf里加入Iclude apachepath/conf/tomcat.conf
先启动apache。然后启动tomcat。如果没有错误提示就是成功了
如果不行很可能是编译apache时没有加入--enable-module=so  ___________Yes______
windows下的Apache+Tomcat与Unix下不太一样,楼上讲的虽然不明了但基本是可以成功安装Tomcat在Unix下,
俺要讲的是在windows下如何Apache+Tomcat:
1:安装Tomcat俺不再讲;(only tomcat 3.2)
2:将Tomcat连接到Apache:
  2-1:安装Apache Web Server,之后修改conf目录下的httpd.conf文件中的Servername
      和port
  2-2:安装Jserv需指定JVM所在目录(copy ApacheModuleJserv.dll to Apache_Home\modules\)
  2-3:此时已支持Servlet,但还不支持JSP,修改conf目录下的httpd.conf文件,在
        文件尾部加上Include "Tomcat_Home\conf\tomcat-apache.conf";
  2-4:先启动Tomcat,再启动Apache
3:Notice! tomcat 4.0 do not make tomcat-apache !       

解决方案 »

  1.   

    Getting, Installing and starting Tomcat 
    --------------------------------------------------------------------------------
    Download Tomcat from here: Get Tomcat 
    --------------------------------------------------------------------------------
    Installing and starting Tomcat 
    --------------------------------------------------------------------------------
    This is a breeze. It consists of the following steps: 
    Unzip "jakarta-tomcat.zip" to the root drive. The zip automatically makes a "jakarta-tomcat" folder and extracts to it. 
    Make the following changes to the environment (ignoring those you already have set):
    1. JAVA_HOME =<WHEREVER JAVA IS INSTALLED>
    2. TOMCAT_HOME=<WHEREVER TOMCAT IS INSTALLED>
    3. The path should include JAVA_HOME\BIN in it.CD to the tomcat install directory and to bin within it. Enter the command "startup" at the prompt. A new java console opens and executes a class. 
    Open a browser and type http://localhost:8080 - this will bring up the tomcat default pages and verifies that it has been installed properly. 
    --------------------------------------------------------------------------------
    Getting, Installing and starting Apache 
    --------------------------------------------------------------------------------
    Download Apache from here: Get Apache 
    --------------------------------------------------------------------------------
    Installing and starting Apache 
    --------------------------------------------------------------------------------
    This is easier than installing Tomcat. Just execute the file apache_1_3_9_win32.exe. To start the Apache server manually, type this in a command shell: 
    "<InstallDir>\Apache Group\Apache\Apache.exe"  -d
    "<InstallDir>\Apache Group\Apache" -s 
    where 
    <InstallDir>
    is the drive and path where Apache has been installed. 
    --------------------------------------------------------------------------------
    Integrating Tomcat and Apache 
    --------------------------------------------------------------------------------
    It looks simple now, but took some work to figure out. Here are the steps:
    Open the file <ApacheInstallDir>\Apache Group\Apache\conf\httpd.conf for editing. <ApacheInstallDir> is the folder where you installed Apache. 
    Reach the end of the file and add the following line as is: 
    Include "<TomcatInstallDir>/conf/tomcat.conf" 
    where <TomcatInstallDir> is the folder where you installed Tomcat. 
    Open the file "<TomcatInstallDir>/conf/tomcat.conf" where <TomcatInstallDir> is the folder where you installed Tomcat. 
    Uncomment (remove the hash symbol # from) the following line:
    #
    LoadModule jserv_module modules/ApacheModuleJServ.dll.
    This is line number 8 in the file. 
    Uncomment (remove the hash symbol # from) the following line:
    #
    ApJServDefaultHost localhost
    if you do not have the file ApacheModuleJServ.dll (which happens sometimes when downloading with Netscape), download it from this location: 
    ftp://ftp.fh-wolfenbuettel.de/pub/www/jakarta.apache.org/builds/tomcat/release/v3.2-beta-
    2/bin/win32/i386/ ApacheModuleJServ.dll
    (type "anonymous" for the user and your email id for the
    password)
    copy the downloaded dll to the following folder: <ApacheInstallDir>Apache Group\Apache\modules where <ApacheInstallDir> is the folder where you installed Apache 
    Write a small jsp test file (test.jsp) and place it in the following folder: <TomcatInstallDir>tomcat\webapps\ROOT where <TomcatInstallDir> is the folder where you installed Tomcat 
    Startup Tomcat and Apache, in any order. See above for more info on starting them up. 
    Type the following in your browser's location box: 
    http://localhost/test.jsp
    If you see the desired output, then that's it. In some remote cases, restarting the system may help. 
    --------------------------------------------------------------------------------
    If there are problem(s) following these steps and if you find the solution(s), or if there are errors here, kindly augment this article so the developer community can harvest the information. 
      

  2.   

    使用win2000+apache+resin,
    安装使用很方便.
    另在resin/doc目录下创建应用程序,在explorer中输入http://localhost:8080/.../(...).jsp即可。
      

  3.   

    当然,还要配置resin,如下:
    在resin的conf子目录下有个resin.conf文件,将该文件备份一个。然后建立resin.conf文件,如下内容:
    <caucho.com> 
    <http-server app-dir=`e:/apache/htdocs`> 
    <error-log id=`log/error.log`/> 
    <classpath id=`WEB-INF/classes` source=`WEB-INF/classes` compile=`true`/> 
    <servlet-mapping url-pattern=`/servlets/*` servlet-name=`invoker`/> 
    <servlet-mapping url-pattern=`*.xtp` servlet-name=`com.caucho.jsp.XtpServlet`/> 
    <servlet-mapping url-pattern=`*.jsp` servlet-name=`com.caucho.jsp.JspServlet`/> 
    </http-server> 
    </caucho.com> 
    然后,启动apache服务,在运行resin/bin下的srun.exe文件,可以看到resin的启动窗体。