Apache ActiveMQ Artemis 安装教程:Broker、控制台与端口配置
· 阅读需 1 分钟
apache artemis是新一代的apache activemq
安装消息队列不仅要让进程成功启动,还要确认管理端口、消息协议端口、持久化目录和账号配置。生产环境还应关注权限、磁盘容量、JVM 参数和监控。
安装过程
apache artemis是一个java程序,所以前提需要安装java,这里我们推荐jdk17
export JAVA_HOME=/usr/local/jdk17
下载
wget -O apache-artemis-2.39.0-bin.tar.gz https://www.apache.org/dyn/closer.cgi?filename=activemq/activemq-artemis/2.39.0/apache-artemis-2.39.0-bin.tar.gz&action=download
安装
tar -zxvf apache-artemis-2.39.0-bin.tar.gz
cd apache-artemis-2.39.0
创建实例
./bin/artemis create broker
--user:
What is the default username?
admin (输入账号)
--password:
is mandatory with this configuration:
What is the default password?
(输入账号密码)
可选操作
修改内存大小
vim ./etc/artemis.profile
# Java Opts
修改cors
vim ./etc/jolokia-access.xml
<allow-origin>*://*</allow-origin>
修改console为可访问
vim ./etc/bootstrap.xml
<binding name="artemis" uri="http://0.0.0.0:8161">