mv apache-artemis-2.19.1-bin.zip /opt
cd /opt
unzip apache-artemis-2.19.1-bin.zip
cd apache-artemis-2.19.1/bin
./artemis create broker
根据提示输入账号和密码
Creating ActiveMQ Artemis instance at: /opt/apache-artemis-2.19.1/bin/broker
--user:
Please provide the default username:
admin
--password: is mandatory with this configuration:
Please provide the default password:
--allow-anonymous | --require-login:
Allow anonymous access?, valid values are Y,N,True,False
N
Auto tuning journal ...
done! Your system can make 14.71 writes per millisecond, your journal-buffer-timeout will be 68000
You can now start the broker by executing:
"/opt/apache-artemis-2.19.1/bin/broker/bin/artemis" run
Or you can run the broker in the background using:
"/opt/apache-artemis-2.19.1/bin/broker/bin/artemis-service" start
完成后 会给出启动命令
cd borker/etc
vi jolokia-access.xml
<web bind="http://localhost:8161" path="web">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</web>
修改为自己电脑的局域网ip,端口注意不冲突就行
<!-- The web server is only bound to localhost by default -->
<web bind="http://192.168.79.133:8161" path="web">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</web>
"/opt/apache-artemis-2.19.1/bin/broker/bin/artemis-service" start
启动命令来源于创建broker时候的提示
重启命令"/opt/apache-artemis-2.19.1/bin/broker/bin/artemis-service" restart
有可能61616端口不能访问
firewall-cmd --query-port=61616/tcp // 查看端口是否已开
firewall-cmd --add-port=61616/tcp --permanent //添加端口
firewall-cmd --reload //重新载入端口
https://www.leftso.com/article/993.html