Activemq JBoss A-MQ 6.1的Red Hat 7:无法访问管理控制台

Activemq JBoss A-MQ 6.1的Red Hat 7:无法访问管理控制台,activemq,rhel7,Activemq,Rhel7,我们遇到了和这篇文章相同的问题:,但是那篇文章没有说明他是如何解决这个问题的 我们正在尝试评估JBoss A-MQ,并根据他们的要求安装了带有A-MQ 6.1的RHEL 7。一切都在本地运行,例如,样本生产者/消费者测试成功验证了安装步骤 但是,即使配置了远程用户,我们也无法访问管理控制台。我们必须向setenv添加一个JAVA_OPTIONS条目来覆盖默认的IPv6套接字,而netstat显示服务现在正在侦听tcp套接字,而不是tcp6: File /opt/jboss-a-mq-6.1.0.

我们遇到了和这篇文章相同的问题:,但是那篇文章没有说明他是如何解决这个问题的

我们正在尝试评估JBoss A-MQ,并根据他们的要求安装了带有A-MQ 6.1的RHEL 7。一切都在本地运行,例如,样本生产者/消费者测试成功验证了安装步骤

但是,即使配置了远程用户,我们也无法访问管理控制台。我们必须向setenv添加一个JAVA_OPTIONS条目来覆盖默认的IPv6套接字,而netstat显示服务现在正在侦听tcp套接字,而不是tcp6:

File /opt/jboss-a-mq-6.1.0.redhat-379/bin/setenv now contains:
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
export JAVA_OPTS

# netstat -paunt | grep 8181
tcp        0      0 0.0.0.0:8181            0.0.0.0:*               LISTEN      10698/java
我们可以从其他系统ping该框,但是尝试在端口8181上打开telnet会话时超时。我们尝试过的管理控制台URL有:

http://172.16.100.110:8181/hawtio
http://172.16.100.110:8181
但两者都不起作用我们错过了什么?

以下是amq.log中包含hawt的条目,看起来它正在正确启动:

$ grep hawt amq.log
2014-09-09 11:32:35,778 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   35 | 98 - org.ops4j.pax.web.pax-web-runtime - 3.0.6 | Binding bundle: [io.hawt.hawtio-web [146]] to http service
2014-09-09 11:32:35,860 | INFO  | pool-10-thread-1 | ConfigManager                    | io.hawt.system.ConfigManager       32 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Configuration will be discovered via system properties
2014-09-09 11:32:35,863 | INFO  | pool-10-thread-1 | JmxTreeWatcher                   | io.hawt.jmx.JmxTreeWatcher         63 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Welcome to hawtio 1.2-redhat-379 : http://hawt.io/ : Don't cha wish your console was hawt like me? ;-)
2014-09-09 11:32:35,865 | INFO  | pool-10-thread-1 | UploadManager                    | io.hawt.jmx.UploadManager          40 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Using file upload directory: /opt/jboss-a-mq-6.1.0.redhat-379/data/tmp/uploads
2014-09-09 11:32:35,868 | INFO  | pool-10-thread-1 | AuthenticationFilter             | io.hawt.web.AuthenticationFilter   84 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | Starting hawtio authentication filter, JAAS realm: "karaf" authorized role: "admin" role principal classes: ""
2014-09-09 11:32:35,965 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl           | .internal.HttpServiceFactoryImpl   35 | 98 - org.ops4j.pax.web.pax-web-runtime - 3.0.6 | Binding bundle: [io.hawt.hawtio-karaf-terminal [148]] to http service
2014-09-09 11:32:35,987 | INFO  | pool-10-thread-2 | ConfigManager                    | io.hawt.system.ConfigManager       32 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | Configuration will be discovered via system properties
2014-09-09 11:32:35,988 | INFO  | pool-10-thread-2 | AuthenticationFilter             | io.hawt.web.AuthenticationFilter   84 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | Starting hawtio authentication filter, JAAS realm: "karaf" authorized role: "admin" role principal classes: ""
2014-09-09 11:32:35,996 | WARN  | FelixStartLevel  | ConfigFacade                     | io.hawt.config.ConfigFacade        23 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | No ConfigFacade constructed yet so using default configuration for now
2014-09-09 11:32:36,015 | INFO  | pool-10-thread-2 | LoginServlet                     | io.hawt.web.LoginServlet           55 | 148 - io.hawt.hawtio-karaf-terminal - 1.2.0.redhat-379 | hawtio login is using default HttpSession timeout
2014-09-09 11:32:36,128 | INFO  | pool-10-thread-1 | hawtio-web - 146}                | lipse.jetty.util.log.JavaUtilLog   75 | 90 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed
2014-09-09 11:32:36,191 | INFO  | pool-10-thread-1 | LoginServlet                     | io.hawt.web.LoginServlet           55 | 146 - io.hawt.hawtio-web - 1.2.0.redhat-379 | hawtio login is using default HttpSession timeout
2014-09-09 11:32:39,227 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade   98 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Storing maven index files in local directory: /opt/jboss-a-mq-6.1.0.redhat-379/data/mavenIndexer
2014-09-09 11:32:39,621 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade  148 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Updating the maven indices. This may take a while, please be patient...
2014-09-09 11:32:39,852 | INFO  | de startup timer | MavenIndexerFacade               | maven.indexer.MavenIndexerFacade  185 | 149 - io.hawt.hawtio-maven-indexer - 1.2.0.redhat-379 | Completed updating 2 maven indices.

天哪,这是本地服务器上的防火墙

在花了一天的时间在网络上搜寻想法,试图找出我的配置出了什么问题之后,在绝望中,我终于认为我应该尝试禁用防火墙,看看会发生什么。所以我用命令关闭了它:

sudo service firewalld stop
突然我可以访问管理控制台了!我尝试了默认的URL,它成功了:

http://172.16.100.110:8181