1韩容、下載安裝包:apache-activemq-5.14.0-bin.tar.gz
地址:http://activemq.apache.org/activemq-5140-release.html
2晰房、安裝
拷貝安裝包到/usr/local/src:mv?apache-activemq-5.14.0-bin.tar.gz /usr/local/src/
解壓壓縮包:tar -zxvf?apache-activemq-5.14.0-bin.tar.gz
進入bin目錄:cd?apache-activemq-5.14.0/bin
啟動mq:./activemq start
3娜庇、驗證
查看進程:ps -ef | grep activemq
添加防火墻端口:
? ?firewall-cmd --add-port=8161/tcp --zone=public --permanent
? ?firewall-cmd --add-port=61616/tcp --zone=public --permanent
打開web管理界面:
http://ip:8161/admin
默認用戶名/密碼: admin/admin
4综膀、安全設(shè)置
http://activemq.apache.org/security.html
activemq.xml新增賬號密碼(broker標簽下添加)如下內(nèi)容:
<simpleAuthenticationPlugin>
????<users>
????????<authenticationUser?username="system"?password="manager"
????????????groups="users,admins"/>
? ? </users>
</simpleAuthenticationPlugin>