首頁>技術>

1.下載二進位制包(root使用者下建立)

wget https://mirrors.tuna.tsinghua.edu.cn/apache/activemq/activemq-artemis/2.9.0/apache-artemis-2.9.0-bin.tar.gz
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.在瀏覽器中輸入 http://192.168.70.155:8161/console, 並使用使用者名稱admin、密碼admin 登陸

使用使用者名稱admin、密碼admin 登陸

OK,搞定了!!

13
最新評論
  • BSA-TRITC(10mg/ml) TRITC-BSA 牛血清白蛋白改性標記羅丹明
  • Collections&JUC建立具有執行緒安全的集合