问题
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