龙空技术网

Centos7安装Apache-Artemis及配置

关山飞渡3M2D 365

前言:

现时我们对“apachesentry配置”都比较关注,咱们都想要了解一些“apachesentry配置”的相关内容。那么小编同时在网上网罗了一些关于“apachesentry配置””的相关资讯,希望你们能喜欢,大家一起来学习一下吧!

1.下载二进制包(root用户下创建)

wget 
2.解压
tar -zxzf apache-artemis-2.9.0-bin.tar.gz /usr/local/
3.创建 broker ,创建用户admin、密码admin、权限admins
cd /usr/local/apache-artemis-2.9.0/
bin/artemis create --user admin --password admin --role admins --allow-anonymous true /opt/artemis
4.在/opt/artemis配置信息4.1在/opt/artemis/etc/下,vim botstrap.xml ,地址修改为当前虚拟机地址:192.168.70.1554.2.在/opt/artemis/etc/下,vim broker.xml ,添加如下信息:--------这一步可以省略
<security-settings>  <security-setting match="#">    <permission type="createNonDurableQueue" roles="admins"/>    <permission type="deleteNonDurableQueue" roles="admins"/>    <permission type="createDurableQueue" roles="admins"/>    <permission type="deleteDurableQueue" roles="admins"/>    <permission type="consume" roles="admins"/>    <permission type="browse" roles="admins"/>    <permission type="send" roles="admins"/>  </security-setting>  <security-setting match="USERS.#">    <permission type="createNonDurableQueue" roles="users"/>    <permission type="deleteNonDurableQueue" roles="users"/>    <permission type="createDurableQueue" roles="users"/>    <permission type="deleteDurableQueue" roles="users"/>    <permission type="consume" roles="users"/>    <permission type="browse" roles="users"/>    <permission type="send" roles="users"/>  </security-setting>           <security-setting match="GUESTS.#">    <permission type="createNonDurableQueue" roles="guests"/>    <permission type="deleteNonDurableQueue" roles="guests"/>    <permission type="createDurableQueue" roles="guests"/>    <permission type="deleteDurableQueue" roles="guests"/>    <permission type="consume" roles="guests"/>    <permission type="browse" roles="guests"/>    <permission type="send" roles="guests"/>  </security-setting>                  </security-settings>
4.3. 在/opt/artemis/etc/下,vim jolokia-access.xml ,将locahost改为当前虚拟机地址192.168.70.1555.防火墙放行端口8161、 61616,查看端口是否放行,重启防火墙
$ firewall-cmd --permanent --zone=public --add-port=8161/tcp$ firewall-cmd --permanent --zone=public --add-port=61616/tcp$ firewall-cmd --permanent --list-port$ service firewalld restart
6.在/opt/artemis/bin/下,启动Apache-Artemis 服务
$ ./artemis-service start

可以查看当前Artemis 服务状态:./artemis-service status

可以在/opt/artemis/log/下,查看服务启动日志, tail -300f artemis.log

7.在浏览器中输入 , 并使用用户名admin、密码admin 登陆

使用用户名admin、密码admin 登陆

OK,搞定了!!

标签: #apachesentry配置