我成功地开始了artemis-service。但是Web控制台无法运行。
cmnd:sudo“/ usr / lib / myBroker / bin / artemis-service”start
响应:
HTTP错误503访问/ console /的问题。原因:
Service Unavailable
我更改bootstrap.xml以从外部访问8161端口。
来自:bind =“http:// localhost:8161”
要:bind =“http://0.0.0.0:8161”
N.B:当我在我的本地机器上启动它没有改变bootstrap.xml时正常工作。
jolokia-access.xml发生此问题。删除allow-origin并添加以下配置:
<remote>
<host>localhost</host>
<host>192.168.0.0/16</host>
</remote>
在这里我允许192.168块ip。
文档here
26 <!-- Allow cross origin access from localhost ... -->
27 <allow-origin>*</allow-origin>
匹配所有