主要是你想干什么你安装tomcat无非是为了做jsp.servlet的容器,所以你没有必要安装apache

解决方案 »

  1.   

    不是学习用,就是要开发东西。那还要apache吗?那apache是用来做什么的呀。我以为也是向IIS一样 有了它,到时候那个网页才能打开来。
      

  2.   

    如果你开发的东西基本都是JSP的话就不要用Apache了,如果还有很多HTML页面的话建议整合起来,Apache的静态页面浏览速度比Tomcat快.
      

  3.   

    我把Tomcat 停掉后,启动 apache.它就不报什么错误,但也不显示什么休息(执行完apache的cmd窗口)。
    然后
    http://127.0.0.1:8080页面显示
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@Catalina and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
    --------------------------------------------------------------------------------Apache/2.0.48 (Win32) mod_jk2/2.0.2 Server at 127.0.0.1 Port 8080
      

  4.   

    我增加了工作目录,想以后就在work目录下写程序。并且把D:\jhome\Tomcat 5.0\webapps 下的程序复制到了D:\jhome\work下。D:\jhome\work我把在 D:\jhome\Apache2\conf\httpd.conf中<VirtualHost localhost:8080>
    LoadModule jk2_module modules/mod_jk2-2.0.43.dll  
    ServerAdmin [email protected]
    DocumentRoot "D:\jhome\work"  
    ServerName asdmusi_cn
    DirectoryIndex index.htm index.html index.jsp
    </VirtualHost>http://127.0.0.1:8080还是不行。不知道怎么配置。
      

  5.   

    不用,可以看作tomcat只是apache的一个组件,可以单独使用
      

  6.   

    那我现在想看 apache好了没有,所以没有启动TOMCAT。只启动了apache
    http://127.0.0.1:8080
    http://127.0.0.1:8080/root
    http://127.0.0.1:8080/root/index.jsp
    都不行。我看了日志
    [Tue Nov 18 08:59:03 2003] [error] shm.init(): No file
    [Tue Nov 18 08:59:03 2003] [notice] Parent: Created child process 3052
    [Tue Nov 18 08:59:03 2003] [error] shm.init(): No file
    [Tue Nov 18 08:59:03 2003] [notice] Child 3052: Child process is running
    [Tue Nov 18 08:59:03 2003] [error] shm.init(): No file
    [Tue Nov 18 08:59:03 2003] [error] mod_jk child init 1 0
    [Tue Nov 18 08:59:03 2003] [notice] Child 3052: Acquired the start mutex.
    [Tue Nov 18 08:59:03 2003] [notice] Child 3052: Starting 250 worker threads.
    [Tue Nov 18 08:59:41 2003] [error] workerEnv.init() create slot epStat.0 failed
    [Tue Nov 18 08:59:41 2003] [error] lb.service() worker failed 120000 for ajp13:localhost:8009
    [Tue Nov 18 08:59:41 2003] [error] lb.service() unrecoverable error...
    [Tue Nov 18 08:59:41 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
    最后一行connecting to tomcat  是不是它还是要TOMCAT呀。但是如果我先启动 apach 再启动tomcat的话。tomcat启动过程中报错误。好像是地址帮定有冲突。应该是和apach 冲突吧但是如果我先启动 tomcat 再启动apach的话。apach启动过程中报错误。错误信息我上面的帖子中写了。
    我现在想看 
    1  apach 我好了没有?
    2  两个是否整和好。(它们是否各私其职)
      

  7.   

    我没有整合好apach(或者说不懂整合),干脆不要了,反正也就是学习用的....
      

  8.   

    这是我的 java 第一堂课
      

  9.   

    我把 D:\jhome\Apache2\conf\httpd.conf
    #
    # 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 (0.0.0.0)
    #
    #Listen 12.34.56.78:80
    Listen 8081  
    #把 8080改为8081,这样后,我两个都启动,就不会后帮定端口的错误了。<VirtualHost localhost:8080> # 我不知道这边该怎么写。8080还是8081。
    LoadModule jk2_module modules/mod_jk2-2.0.43.dll  
    ServerAdmin [email protected]
    DocumentRoot "D:\jhome\work"  
    ServerName asdmusi_cn
    DirectoryIndex index.htm index.html index.jsp
    </VirtualHost>