简体   繁体   English

无法启动Tomcat服务器

[英]Cannot start Tomcat server

I am new at Linux and Tomcat and trying to install Tomcat properly. 我是Linux和Tomcat的新手,正在尝试正确安装Tomcat。 What I did is extract apache-tomcat-7.029 and openjdk. 我所做的是提取apache-tomcat-7.029和openjdk。

I set the profile file and the paths like: 我设置了配置文件和类似的路径:

export JAVA_HOME=/usr/lib/jvm/default-java
export CATALINA_HOME=/root/tomcat

the result of 的结果

java -version 

is this: 这是:

java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)

and when I say 当我说

$CATALINA_HOME/bin/startup.sh

it returns me: 它返回我:

Using CATALINA_BASE:   /root/tomcat
Using CATALINA_HOME:   /root/tomcat
Using CATALINA_TMPDIR: /root/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/default-java
Using CLASSPATH:       /root/tomcat/bin/bootstrap.jar:/root/tomcat/bin/tomcat-juli.jar

but when I try to use tomcat with either 但是当我尝试将tomcat与

http://MY_IP_address:8080/

I get this error: 我收到此错误:

 http://MY_IP_address:8080:No such file or directory

Open your browser and in the url type 打开浏览器并输入url类型

http://your_IP_address:8080/ for example http://your_IP_address:8080/

http://192.168.0.100:8080 or http://locahost:8080 http://192.168.0.100:8080http://locahost:8080

open your browser and type 打开浏览器并输入

http://locahost:8080

and once check Apache tomcat service is started or not 并检查Apache tomcat服务是否启动

Steps: start-control panel-administrative tools-services and check apache tomcat. 步骤:启动控制面板-管理工具-服务,然后检查Tomcat。 If service is not started then right click and start the server before running apache tomcat 如果服务未启动,请在运行apache tomcat之前右键单击并启动服务器

I have tried this and it's working fine 我已经尝试过了,它工作正常

Enter http://localhost:8080 in your browser. 在浏览器中输入http://localhost:8080
If you want to access it from another computer with your IP address, you may try to find the firewall settings of your OS and make sure the port 8080(in your case) is open. 如果要使用具有IP地址的另一台计算机访问它,则可以尝试查找操作系统的防火墙设置,并确保端口8080(在您的情况下)已打开。

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

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