无法访问AWS EC2 Linux Env​​上的jboss 7管理控制台

时间:2017-10-12 23:32:55

标签: java amazon-web-services amazon-ec2 jboss jboss7.x

我无法通过{public IP / DNS}:{Mgmt-Port}从我的机器访问jboss控制台? Jboss在amazon linux(AWS中的EC2实例之一)中运行。

我已将绑定地址用作0.0.0.0但仍无法使用公共IP和管理端口连接到管理控制台,这些端口已在AWS控制台中打开以接受传入流量。

任何人都对应该做什么有任何想法?

我用过:

ssh i [PEM FILE PATH] -L 9992:0.0.0.0:9990 [EC2 username]@EC2address.com

并能够通过以下方式连接到jboss管理控制台:

http://localhost:9992/console/

但我想用我的公共IP和管理端口连接到管理控制台。

jboss启动过程:

./standalone.sh -Djboss.bind.addres=0.0.0.0 -Djboss.bind.address.management=0.0.0.0
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /home/jboss/jboss

  JAVA: /usr/lib/jvm/jre/bin/java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

=========================================================================

23:19:15,458 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
23:19:15,729 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
23:19:15,789 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
23:19:16,893 INFO  [org.xnio] XNIO Version 3.0.3.GA
23:19:16,912 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
23:19:16,916 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
23:19:16,943 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
23:19:17,005 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
23:19:17,010 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
23:19:17,043 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
23:19:17,083 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
23:19:17,096 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
23:19:17,147 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
23:19:17,164 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
23:19:17,192 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
23:19:17,235 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
23:19:17,262 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
23:19:17,263 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final
23:19:17,521 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
23:19:17,670 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.2.GA
23:19:18,163 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
23:19:18,424 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /0.0.0.0:9999
23:19:18,499 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /home/jboss/jboss/standalone/deployments
23:19:18,540 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:4447
23:19:18,608 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
23:19:18,652 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://0.0.0.0:9990
23:19:18,652 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 3519ms - Started 133 of 208 services (74 services are passive or on-demand)

2 个答案:

答案 0 :(得分:1)

打开终端并放置

ssh -i [PEM FILE PATH] -L 9992:127.0.0.1:9990 [EC2 username]@[EC2 Public ip address]

,然后您可以在野生动物园中打开网址“ http://127.0.0.1:9992”。

答案 1 :(得分:0)

我有一个类似的问题。为了解决这个问题,我做了两件事

  1. 使用以下命令启动服务器。您可以使用nohup / service / systemctl在后台/服务中执行该过程

    要么使用

  2. 我编辑了AWS安全组的入站规则,以允许从图像中给出的任何IP地址进行访问。 [我将其用于测试目的。]您可以使用更严格的入站规则来限制访问。

Edit AWS Security Group's inbound rules