linux下查看tomcat 版本

方法一:

进入到tomcat安装目录下(或用其他command进入)

# cd $CATALINA_HOME
# more RELEASE-NOTES

即可看到
上面得到的信息准确的前提:没有打新的tuning patch

[abin@abin tomcat]$ more RELEASE-NOTES
================================================================================
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
================================================================================
 
$Id: RELEASE-NOTES 786654 2009-06-19 20:25:01Z markt $
 
 
                     Apache Tomcat Version 6.0.29
                            Release Notes
 
 
=============================
KNOWN ISSUES IN THIS RELEASE:
=============================

方法二:

[abin@abin bin]$ ./version.sh 
/app/jiekou3/bin/catalina.sh: line 86: SET: command not found
Using CATALINA_BASE:   /app/jiekou3
Using CATALINA_HOME:   /app/jiekou3
Using CATALINA_TMPDIR: /app/jiekou3/temp
Using JRE_HOME:        /usr/jdk1.6
Using CLASSPATH:       /app/jiekou3/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.29
Server built:   July 19 2010 1458
Server number:  6.0.0.29
OS Name:        Linux
OS Version:     2.6.32-71.el6.x86_64
Architecture:   amd64
JVM Version:    1.6.0_26-b03
JVM Vendor:     Sun Microsystems Inc.

方法三:

[abin@abin bin]$ sh version.sh 
/app/jiekou3/bin/catalina.sh: line 86: SET: command not found
Using CATALINA_BASE:   /app/jiekou3
Using CATALINA_HOME:   /app/jiekou3
Using CATALINA_TMPDIR: /app/jiekou3/temp
Using JRE_HOME:        /usr/jdk1.6
Using CLASSPATH:       /app/jiekou3/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.29
Server built:   July 19 2010 1458
Server number:  6.0.0.29
OS Name:        Linux
OS Version:     2.6.32-71.el6.x86_64
Architecture:   amd64
JVM Version:    1.6.0_26-b03
JVM Vendor:     Sun Microsystems Inc.

还没有评论,快来抢沙发!

发表评论

  • 😉
  • 😐
  • 😡
  • 😈
  • 🙂
  • 😯
  • 🙁
  • 🙄
  • 😛
  • 😳
  • 😮
  • emoji-mrgree
  • 😆
  • 💡
  • 😀
  • 👿
  • 😥
  • 😎
  • ➡
  • 😕
  • ❓
  • ❗
  • 68 queries in 0.066 seconds