Artemis-2.6.3 console: Service Unavailable

孤人 提交于 2019-12-11 04:27:45

问题


I started artemis-service successfully. But web console not working.

cmnd: sudo "/usr/lib/myBroker/bin/artemis-service" start

url: http://ip:8161/console/

response:

HTTP ERROR 503 Problem accessing /console/. Reason:

Service Unavailable

I change the bootstrap.xml to access 8161 port from outside.

From: bind="http://localhost:8161"

To: bind="http://0.0.0.0:8161"

N.B: when I start it in my local-machine working fine without change bootstrap.xml.


回答1:


Solution

This problem occurred for jolokia-access.xml. remove allow-origin and add below configuration:

<remote>
      <host>localhost</host>
      <host>192.168.0.0/16</host>
</remote>

Here I allowed 192.168 block ip.

Documentation here




回答2:


 26         <!-- Allow cross origin access from localhost ... -->
 27         <allow-origin>*</allow-origin>

match all



来源:https://stackoverflow.com/questions/53257375/artemis-2-6-3-console-service-unavailable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!