linux安裝Apache ActiveMQ 5.15.3

1.下載Apache ActiveMQ 5.15.3

 下載地址 :http://activemq.apache.org/download.html

2. 安裝

把下載好的activemq-5.15.3-bin.tar.gz文件上傳到 /usr/local 目錄下,然後解壓

tar -zxvf activemq-5.15.3-bin.tar.gz 後切換到 /usr/local/apache-activemq-5.15.3/bin 目錄下

該版本的activemq需要jdk1.8以上版本

activemq啓動命令

./activemq start  啓動命令

./activemq stop  停止命令

3.查看是否啓動成功

這裏對 ActiveMQ 的端口做一個簡短說明,61616爲消息代理接口 ,8161 爲管理界面

activemq默認端口61616

netstat -anp|grep 61616


這說明已經啓動成功

4 如果你的系統開啓了防火牆,放開防火牆端口

centos 7以下版本

/sbin/iptables -I INPUT -p tcp --dport 8161 -j ACCEPT&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables status
/sbin/iptables -I INPUT -p tcp --dport 61616 -j ACCEPT&&/etc/init.d/iptables save&&service iptables restart&&/etc/init.d/iptables status


centos 7以及以上版本

firewall-cmd --zone=public --add-port=8161/tcp --permanent

firewall-cmd --zone=public --add-port=61616/tcp --permanent

firewall-cmd --reload 重載防火牆

5. 打開web管理頁面

http://IP:8161/admin

默認賬號密碼都是admin


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章