Last active
July 14, 2021 20:10
-
-
Save elcascarudo-dev/374bf053d3d05be5ddcd43cb92c68fcf to your computer and use it in GitHub Desktop.
Obtener versión de Tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.- Obtener versión Java instalado | |
# alternatives --config java | |
Hay 2 programas que proporcionan 'java'. | |
Selección Comando | |
----------------------------------------------- | |
3 /opt/jdk1.7.0_80/bin/java | |
+ 4 /usr/java/jdk1.7.0_80/bin/java | |
2.- Obtener versión Tomcat | |
en el directorio /usr/share/tomcat/lib | |
# /usr/java/jdk1.7.0_80/bin/java -cp catalina.jar org.apache.catalina.util.ServerInfo | |
Salida: | |
Server version: Apache Tomcat/6.0.24 | |
Server built: February 20 2017 1727 | |
Server number: 6.0.24.0 | |
OS Name: Linux | |
OS Version: 2.6.32-573.3.1.el6.x86_64 | |
Architecture: amd64 | |
JVM Version: 1.7.0_80-b15 | |
JVM Vendor: Oracle Corporation | |
----------------------------------------------------------------------------------------------------------------------- | |
Si el tomcat no esta instalado y se ejecuta directo desde el directorio descomprimido se puede visualizar desde el archivo: | |
./version.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
validar configuración por defecto java
java -XX:+PrintCommandLineFlags -version