1.linux下查看tomcat和jdk版本号的命令:
这个需要进入到bin目录下面
[root@localhost bin]# ./version.sh
Using CATALINA_BASE: /opt/dina/tools/tomcat7
Using CATALINA_HOME: /opt/dina/tools/tomcat7
Using CATALINA_TMPDIR: /opt/dina/tools/tomcat7/temp
Using JRE_HOME: /opt/dina/tools/jdk1.7.0_25
Using CLASSPATH: /opt/dina/tools/tomcat7/bin/bootstrap.jar:/opt/dina/tools/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.20
Server built: Aug 9 2011 09:34:27
Server number: 7.0.20.0
OS Name: Linux
OS Version: 2.6.18-194.el5
Architecture: amd64
JVM Version: 1.7.0_25-b15
JVM Vendor: Oracle Corporation
2.重启tomcat的命令:
第一个,这个需要进入到bin目录下面
[root@localhost bin]# ./startup.sh
第二个,service tomcat start
3、查看tomcat日志的命令:
tail -f /usr/local/tomcat/logs/catalina.out
这个需要进入到bin目录下面
[root@localhost bin]# ./version.sh
Using CATALINA_BASE: /opt/dina/tools/tomcat7
Using CATALINA_HOME: /opt/dina/tools/tomcat7
Using CATALINA_TMPDIR: /opt/dina/tools/tomcat7/temp
Using JRE_HOME: /opt/dina/tools/jdk1.7.0_25
Using CLASSPATH: /opt/dina/tools/tomcat7/bin/bootstrap.jar:/opt/dina/tools/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.20
Server built: Aug 9 2011 09:34:27
Server number: 7.0.20.0
OS Name: Linux
OS Version: 2.6.18-194.el5
Architecture: amd64
JVM Version: 1.7.0_25-b15
JVM Vendor: Oracle Corporation
2.重启tomcat的命令:
第一个,这个需要进入到bin目录下面
[root@localhost bin]# ./startup.sh
第二个,service tomcat start
3、查看tomcat日志的命令:
tail -f /usr/local/tomcat/logs/catalina.out