查看Linux、Tomcat、JAVA版本信息
1 [root@test1 bin]# cd /usr/local/tomcat/tomcat_jdt/bin/ 2 [root@test1 bin]# sh version.sh 3 Using CATALINA_BASE: /usr/local/tomcat/tomcat_jdt 4 Using CATALINA_HOME: /usr/local/tomcat/tomcat_jdt 5 Using CATALINA_TMPDIR: /usr/local/tomcat/tomcat_jdt/temp 6 Using JRE_HOME: /usr/local/jdk1.7.0_79 7 Using CLASSPATH: /usr/local/tomcat/tomcat_jdt/bin/bootstrap.jar:/usr/local/tomcat/tomcat_jdt/bin/tomcat-juli.jar 8 Server version: Apache Tomcat/7.0.68 9 Server built: Feb 8 2016 20:25:54 UTC 10 Server number: 7.0.68.0 11 OS Name: Linux 12 OS Version: 2.6.32-431.el6.x86_64 13 Architecture: amd64 14 JVM Version: 1.7.0_79-b15 15 JVM Vendor: Oracle Corporation 16 [root@test1 bin]# getconf LONG_BIT 17 64 18 [root@test1 bin]#
getconf LONG_BIT 查看系统是32位还是64位,很明显,当前Linux系统是64位的。