如何在linux上启动tomcat 8并运行servlet?

时间:2015-12-29 15:14:23

标签: java tomcat servlets

我试过了:

shibly@mybox:~/apache-tomcat-8.0.3/bin$ ./startup.sh 
Using CATALINA_BASE:   /home/shibly/apache-tomcat-8.0.3
Using CATALINA_HOME:   /home/shibly/apache-tomcat-8.0.3
Using CATALINA_TMPDIR: /home/shibly/apache-tomcat-8.0.3/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /home/shibly/apache-tomcat-8.0.3/bin/bootstrap.jar:/home/shibly/apache-tomcat-8.0.3/bin/tomcat-juli.jar
Tomcat started.

从Netbeans构建,我已将WebApplication1.war放入/home/shibly/apache-tomcat-8.0.3/webapps。 然后http://localhost:8084/WebApplication1/http://localhost:8084/WebApplication1/NewServlet不运行任何内容。可能是,tomcat没有正常启动。出现Unable to connect错误。

我该如何解决?

我可以从Netbeans启动apache tomcat。它从Netbeans正确运行WebApplication1。

0 个答案:

没有答案