centos6.8安装activemq5.5

安装activemq

    wget https://archive.apache.org/dist/activemq/apache-activemq/5.5.1/apache-activemq-5.5.1-bin.tar.gz

    tar zxvf apache-activemq-5.5.1-bin.tar.gz

    mv apache-activemq-5.5.1 /usr/local/activemq

    cd /usr/local/activemq/bin

设置权限

    chown -R root.root activemq/

编辑文件

   ./activemq setup /etc/default/activemq

   vi /etc/default/activemq 在末尾添加java jdk环境变量


启动activemq

 ./activemq start  普通启动

 ./activemq start >tmp/smlog  日志启动 

nohup ./activemq start >/tmp/smlog  后台启动


查看是否启动

netstat -ln | grep 61  


终止

ps -ef | grep activemq   找到进程ID

kill -9 5259  杀死进程


关闭防火墙

service iptables stop

访问

https://172.16.41.156:8161/admin/ 默认用户名密码都是admin

   




评论

© 張家鈞甯丶 | Powered by LOFTER