红联Linux门户
Linux帮助

求助centos+tomcat+jdk配置问题!

发布时间:2008-07-07 17:41:39来源:红联作者:japhone
配了一天了,还是没头绪
jdk配置成功了,在命 令行下输入java/javac显示其帮助信息
但tomcat不知道是否配置成功,执行代码/usr/local/tomcat/bin/startup.sh后,信息如下:

======================================================================
[root@localhost native]# /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk15
======================================================================

/etc/profile配置如下:
export JAVA_HOME=/usr/local/jdk15
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
export TOMCAT_HOME=/usr/local/tomcat
export CATALINA_HOME=/usr/local/tomcat
export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib


在网上查的资料配置的,但启动tomcat后,页面却是centos的欢迎页面,自己指定的目录访问不了,请问是配置成功了吗?
文章评论

共有 4 条评论

  1. japhone 于 2008-07-08 16:46:25发表:

    对了,服务器是64位的

    /usr/local/jdk15/jre/lib/amd64/server:/usr/local/jdk15/jre/lib/amd64:/usr/local/jdk15/jre/../lib/amd64
    不知是什么意思?

  2. japhone 于 2008-07-08 16:43:45发表:

    谢谢chinablue

    我用catalina.sh run 启动tomcat出现下列信息:
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk15/jre/lib/amd64/server:/usr/local/jdk15/jre/lib/amd64:/usr/local/jdk15/jre/../lib/amd64

    Jul 8, 2008 4:32:23 PM org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Jul 8, 2008 4:32:23 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 913 ms
    Jul 8, 2008 4:32:23 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Jul 8, 2008 4:32:23 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
    Jul 8, 2008 4:32:23 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Jul 8, 2008 4:32:24 PM org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jul 8, 2008 4:32:24 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Jul 8, 2008 4:32:24 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/22 config=null
    Jul 8, 2008 4:32:25 PM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Jul 8, 2008 4:32:25 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1624 ms


    提示启动成功,但仍不能访问我配置的目录
    server.xml
    privileged="true" reloadable="true" crossContext="true"/>

    不知是什么原因?

  3. 永远自我 于 2008-07-07 23:33:40发表:

    不懂,还是菜鸟呢

  4. chinablue 于 2008-07-07 22:31:02发表:

    清下WEB缓存,重起下能看到 welcome 应该没什么问题了。
    最好还是使用 catalina.sh run 来启动 tomcat,可以看到启动记录。
    host 下的配置问题

    当然workDir你自己决定啦,docBase是你放制工程的具体位置。都是完全的路径。