Tomcat7 未在 CentOS 上启动
Tomcat7 not started on CentOS
我已经在 CentOS 上安装了 Tomcat7。我已经下载了 tar 文件并解压缩了。然后从 bin 文件夹中我得到了 started 并且在命令行中显示 Tomcat 得到了 started。然后我试图通过 localhost:8080 进入
但是没有任何显示。
我也尝试过创建 setenv.sh 文件并在其中写入 JRE_HOME。
我也无法阻止tomcat。收到以下消息
[root@localhost bin]# ./shutdown.sh
Using CATALINA_BASE: /opt/apache-tomcat-7.0.69
Using CATALINA_HOME: /opt/apache-tomcat-7.0.69
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.69/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk- 1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java
Using CLASSPATH: /opt/apache-tomcat-7.0.69/bin/bootstrap.jar:/opt/apache-tomcat-7.0.69/bin/tomcat-juli.jar
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 448: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
[root@localhost bin]#
这是来自 catalina_out
的日志文件
[root@localhost apache-tomcat-7.0.69]# cd logs/
[root@localhost logs]# cat catalina.out
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
./catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
[root@localhost logs]#
我也检查了端口列表,现在没有其他应用程序正在使用它。
我一直收到这些错误消息并一直停留在这个问题上。
你的JRE_HOME
必须是/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre
我已经在 CentOS 上安装了 Tomcat7。我已经下载了 tar 文件并解压缩了。然后从 bin 文件夹中我得到了 started 并且在命令行中显示 Tomcat 得到了 started。然后我试图通过 localhost:8080 进入 但是没有任何显示。
我也尝试过创建 setenv.sh 文件并在其中写入 JRE_HOME。
我也无法阻止tomcat。收到以下消息
[root@localhost bin]# ./shutdown.sh
Using CATALINA_BASE: /opt/apache-tomcat-7.0.69
Using CATALINA_HOME: /opt/apache-tomcat-7.0.69
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.69/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk- 1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java
Using CLASSPATH: /opt/apache-tomcat-7.0.69/bin/bootstrap.jar:/opt/apache-tomcat-7.0.69/bin/tomcat-juli.jar
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 448: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
[root@localhost bin]#
这是来自 catalina_out
的日志文件 [root@localhost apache-tomcat-7.0.69]# cd logs/
[root@localhost logs]# cat catalina.out
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
./catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
/opt/apache-tomcat-7.0.69/bin/catalina.sh: line 396: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre/bin/java/bin/java: Not a directory
[root@localhost logs]#
我也检查了端口列表,现在没有其他应用程序正在使用它。
我一直收到这些错误消息并一直停留在这个问题上。
你的JRE_HOME
必须是/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre