artemis服务_Artemis安装

Linux下安装Artemis

Artemis是下一代的ActiveMQ,也就是说目前的ActiveMQ是5.x,Artemis将是6.x

1. 下载

官网下载地址:

wget https://downloads.apache.org/activemq/activemq-artemis/2.13.0/apache-artemis-2.13.0-bin.tar.gz

2. 解压

[root@learn200 package]# tar zxf apache-artemis-2.11.0-bin.tar.gz -C /opt/software/

[root@learn200 package]# cd /opt/software/

为了以后换版本也方便,可以创建一个链接

[root@learn200 software]# ln -s apache-artemis-2.11.0/ artemis

3. 创建Broker实例

Broker实例是包含与Broker进程关联的所有配置和运行时数据(如日志和数据文件)的目录。

官网文档建议我们不要在${ARTEMIS_HOME}下创建实例目录。

会提示输入账号、密码、以及是否允许匿名登录

[root@learn200 artemis]# cd /data01/artemis/

[root@learn200 artemis]# /opt/software/artemis/bin/artemis create myBroker

Creating ActiveMQ Artemis instance at: /data01/artemis/myBroker

--user: is a mandatory property!

Please provide the default username:

aganRun

--password: is mandatory with this configuration:

Please provide the default password:

--allow-anonymous | --require-login: is a mandatory property!

Allow anonymous access?, valid values are Y,N,True,False

Y

Auto tuning journal ...

done! Your system can make 16.67 writes per millisecond, your journal-buffer-timeout will be 59999

You can now start the broker by executing:

"/data01/artemis/myBroker/bin/artemis" run

Or you can run the broker in the background using:

"/data01/artemis/myBroker/bin/artemis-service" start

[root@learn200 artemis]#

4. 启动停止

第三部控制台已经输出了启停命令

启动: /data01/artemis/myBroker/bin/artemis run

后台启动 /data01/artemis/myBroker/bin/artemis-service start

后台启动

[root@learn200 artemis]# /data01/artemis/myBroker/bin/artemis-service start

Starting artemis-service

artemis-service is now running (1615)

5. 访问控制台

根据官方文档所述,我们可以通过使用浏览器访问URL http://localhost:8161/console 来使用控制台.

默认只能通过本机访问。如果想通过IP:8161访问需要修改配置文件

修改 etc/jolokia-access.xml,添加一条allow-origin的访问权限设置

*://localhost*

*://192.168.88.200*

修改etc/bootstrap.xml,localhost改为服务器的ip

重启/data01/artemis/myBroker/bin/artemis-service restart

此时成功访问

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值