我试过了:
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。