activemq centos环境配置、验证

基于一些老系统还在用activemq  因此搭建下,下面地址的版本是下载最快的

1,官方下载  http://activemq.apache.org/activemq-5122-release.html   

apache-activemq-5.15.2-bin.tar.gz


2,tar -zxvf apache-activemq-5.15.2-bin.tar.gz



3 开启自启

 cd /etc/init.d/

vi activemq

insert and save 下面自启内容

#!/bin/sh
 

#export JAVA_HOME=/
export CATALINA_HOME=/usr/activemq/apache-activemq-5.15.2

case $1 in
    start)
        sh $CATALINA_HOME/bin/activemq start
    ;;
    stop)
        sh $CATALINA_HOME/bin/activemq stop
    ;;
    restart)
        sh $CATALINA_HOME/bin/activemq stop
        sleep 1
        sh $CATALINA_HOME/bin/activemq start
    ;;

esac
exit 0

设置可执行权限
chmod 777 activemq
 
设置开机启动并启动activemq
chkconfig activemq on (关闭off)

service activemq start

成功后显示



4 测试

设置并打开防火墙8161

firewall-cmd --zone=public --add-port=8161/tcp --permanent
#更新防火墙

firewall-cmd --complete-reload

win访问centos并测试





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