我有一个EC2框,我已经启动了相同的tomcat服务器。我可以在日志中看到服务器已启动。我也可以telnet到本地主机,并可以获得如下所示的html。但是,当我试图通过“HTTP来获得在浏览器中一样:ec2- *:?9000 /那么它不响应我使用默认设置创建我的实例是不是因为某种防火墙的汤姆猫开始,但HTML不加载
[email protected]:~/apprickwebapp$ telnet localhost 9000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET http://localhost/
/p>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Apache TomcatIt works !
If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!
This is the default Tomcat home page. It can be found on the local filesystem at /var/lib/tomcat7/webapps/ROOT/index.html
Tomcat7 veterans might be pleased to learn that this system instance of Tomcat is installed with CATALINA_HOME
in /usr/share/tomcat7
and CATALINA_BASE
in /var/lib/tomcat7
, following the rules from /usr/share/doc/tomcat7-common/RUNNING.txt.gz
.
You might consider installing the following packages, if you haven't already done so:
tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
NOTE: For security reasons, using the manager webapp is restricted to users with role "manager". The host-manager webapp is restricted to users with role "admin". Users are defined in /etc/tomcat7/tomcat-users.xml
.