Commands for viewing tomcat and jdk version numbers, restarting tomcat, and viewing tomcat logs under linux

Source: http://0609xiaohua.iteye.com/blog/1343223
Comments:
1. Command to check the version number of tomcat and jdk under linux:
This needs to enter the bin directory
[root@localhost bin]# ./version.sh
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/java/jdk1.6.0_20
Using CLASSPATH: /usr/local/tomcat6/ bin/bootstrap.jar
Server version: Apache Tomcat/6.0.32
Server built: February 2 2011 2003
Server number: 6.0.32.0
OS Name: Linux
OS Version: 2.6.18-194.el5
Architecture: i386
JVM Version: 1.6.0_20 -b02
JVM Vendor: Sun Microsystems Inc.


2. The command to restart tomcat:
the first, this needs to enter the bin directory
[root@localhost bin]# ./startup.sh
The second, service tomcat start


3. The command to view the tomcat log:
tail -f /usr /local/tomcat/logs/catalina.out

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326937990&siteId=291194637