Apache Artemis安装

apache artemis是新一代的apache activemq

安装过程

apache artemis是一个java程序,所以前提需要安装java,这里我们推荐jdk17

1
export JAVA_HOME=/usr/local/jdk17

下载

1
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

安装

1
2
3
tar -zxvf apache-artemis-2.39.0-bin.tar.gz

cd apache-artemis-2.39.0

创建实例

1
2
3
4
5
6
7
8
9
10
./bin/artemis create broker 

--user:
What is the default username?
admin (输入账号)

--password:
is mandatory with this configuration:
What is the default password?
(输入账号密码)

可选操作

修改内存大小

1
2
3
vim ./etc/artemis.profile

# Java Opts

修改cors

1
2
3
vim ./etc/jolokia-access.xml

<allow-origin>*://*</allow-origin>

修改console为可访问

1
2
3
vim ./etc/bootstrap.xml

<binding name="artemis" uri="http://0.0.0.0:8161">