0

我们遇到了与此 OP 相同的问题: JBoss ActiveMQ on Red Hat - Unable to access AMQ Web Console,但是该帖子并未说明他是如何解决问题的。

我们正在尝试评估 JBoss A-MQ,并根据他们的安装指南安装了 RHEL 7 和 A-MQ 6.1 。一切都在本地工作,例如样本生产者/消费者测试在验证安装步骤中成功。

但是,即使配置了远程用户,我们也无法访问管理控制台。我们确实必须向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.
4

1 回答 1

0

OMG,这是本地服务器上的防火墙。

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

sudo service firewalld stop

突然我可以访问管理控制台了!我尝试了默认 URL,它有效:

http://172.16.100.110:8181

哦!

于 2014-09-10T01:10:07.000 回答