简体   繁体   English

访问Tomcat Web Manager时连接超时

[英]Connection timmed out when accessing Tomcat web manager

I installed tomcat8 on a amazon ubuntu server from a windows computer using an online tutorial as a guide. 我使用在线教程作为指导,从Windows计算机在Amazon ubuntu服务器上安装了tomcat8。

It started from command line, a message stated it was really running, but when I try to access the webapp, I get connection timmed out. 它从命令行开始,一条消息指出该命令确实正在运行,但是当我尝试访问该Web应用程序时,连接受到了激励。

I went through a lot of possible online solutions, so I edited my tomcat-users.xml, my server.xml, but I dont get to load the app when I enter http://server_ip:8080 我经历了很多可能的在线解决方案,因此我编辑了tomcat-users.xml,server.xml,但是当我输入http:// server_ip:8080时却无法加载该应用程序

When I try localhost:8080 I get access denied. 当我尝试localhost:8080时,访问被拒绝。

How can I verify what is wrong, please? 请问我如何确认出什么问题了?

Oh, I also added tomcat user, group and exported catalina path. 哦,我还添加了tomcat用户,组和导出的catalina路径。

I'm really new to ubuntu, could you guys help me? 我真的是ubuntu的新手,你们可以帮我吗? Obrigada rig田

this is what i get from catalina.out 这就是我从catalina.out得到的

        17-Oct-2016 14:41:36.789 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["ajp-nio-8009"]
 java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:463)
        at sun.nio.ch.Net.bind(Net.java:455)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:228)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:866)
        at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:213)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:575)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:944)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:873)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)

17-Oct-2016 14:41:36.791 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[AJP/1.3-8009]]
 org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
        at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:873)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)



17-Oct-2016 05:04:02.282 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]:
 java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
        at java.net.ServerSocket.bind(ServerSocket.java:376)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:440)
        at org.apache.catalina.startup.Catalina.await(Catalina.java:743)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

The thing is, Im not using these ports anymore, I changed them in server.xml file to port 80. 问题是,我不再使用这些端口了,我在server.xml文件中将它们更改为端口80。

What actually worked for me was opening 8080 port on aws. 实际上对我有用的是在aws上打开8080端口。 As simple as that haha :) 就这么简单哈哈:)

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

相关问题 当用作Tomcat 7的会话管理器时,Redis连接异常 - Redis Connection Exception when used as a Session manager for Tomcat 7 Apache Tomcat无法加载web.xml - 连接超时 - Apache Tomcat cannot load web.xml - Connection timed out 通过HttpClient的Tomcat管理器连接 - Tomcat manager connection through HttpClient 使用Jersey和Tomcat访问Java中的Web服务时出现404 - 404 when accessing Web Service in java using Jersey and Tomcat Tomcat Manager中的Web应用程序版本 - Web app version in Tomcat Manager 访问Tomcat服务器上的Web应用程序资源时出现NoSuchMethodError - NoSuchMethodError when accessing web app resource on Tomcat server Maven Web项目在eclipse(tomcat 7)中运行错误:错误:无法调用Tomcat管理器:软件导致连接中止:套接字写入错误 - The maven web project runs error in eclipse(tomcat 7):error:Cannot invoke Tomcat manager: Software caused connection abort: socket write error Tomcat 持久管理器与 JDBC 存储访问 static 资源时抛出空指针异常 - Tomcat Persistent Manager with JDBC Store throwing nullpointer exception when accessing static resources Tomcat管理器ERR_CONNECTION_REFUSED - Tomcat manager ERR_CONNECTION_REFUSED 无法打开“Tomcat Web应用程序管理器” - Unable to open “Tomcat web application manager”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM