简体   繁体   English

无法在32位Ubuntu 14.04上启动Tomcat7

[英]Unable to start Tomcat7 on 32 bit Ubuntu 14.04

I'm running a VirtualBox of a 32-bit version of Ubuntu 14.04. 我正在运行32位版本的Ubuntu 14.04的VirtualBox。 When attempting to run sudo service tomcat7 start I get the following message. 尝试运行sudo service tomcat7 start ,出现以下消息。

start-stop-daemon: unable to stat /usr/lib/jvm/java-t-openjdk-amd64/jre/bin/java

It then returns saying the server has started. 然后它返回说服务器已经启动。

After running service tomcat7 status I get the following: 运行service tomcat7 status我得到以下信息:

Tomcat servlet engine is running with pid

Notice that there is no pid shown, which doesn't make any sense to me. 请注意,没有显示pid,对我来说这没有任何意义。

Regardless, this all ends up in the servlet not actually running when I attempt to navigate to localhost/. 无论如何,当我尝试导航到localhost /时,所有这些最终都将导致servlet实际未运行。

I have no idea why it is looking for 64 bit java on a 32 bit install. 我不知道为什么要在32位安装上寻找64位Java。 I have everything else (to my knowledge) installed properly. (据我所知)我已经安装了所有其他东西。 I've uninstalled/reinstalled tomcat and java to no avail. 我已经卸载/重新安装了tomcat和java,但无济于事。

Any help is appreciated. 任何帮助表示赞赏。

check the version of java using java -version. 使用java -version检查Java版本。 you will get the architecture of java. 您将获得Java的体系结构。 Make sure that you have installed the 32 bit jre properly. 确保已正确安装32位jre。 (My recommendation is to use oracle jre instead open jre). (我的建议是使用oracle jre代替open jre)。 Try to download the tomcat from their site as .tar.gz. 尝试从他们的网站以.tar.gz格式下载tomcat。 Extract it somewhere in your system. 将其解压缩到系统中的某个位置。 Locate the startup.sh script ,by default it will be present in bin folder of tomcat, and execute the script. 找到startup.sh脚本,默认情况下它将存在于tomcat的bin文件夹中,然后执行该脚本。

Hope it helps!! 希望能帮助到你!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM