RedHat系统安装ActiveMQ5.8.0

来源:互联网 发布:阿里云实际应用 编辑:程序博客网 时间:2024/06/05 22:31

1、下载安装

安装目录:/app

cd /rootwget http://apache.cu.be//activemq/apache-activemq/5.8.0/apache-activemq-5.8.0-bin.tar.gzcp /root/apache-activemq-5.8.0-bin.tar.gz /appcd /apptar xvzf apache-activemq-5.8.0-bin.tar.gzchown root. apache-activemq* -Rln -f -s apache-activemq-5.8.0 activemq

2、配置

sed -i 's#ACTIVEMQ_HOME.*#ACTIVEMQ_HOME="/app/activemq"#g' /app/activemq/bin/linux-x86-64/activemqsed -i 's#set.default.ACTIVEMQ_HOME=.*#set.default.ACTIVEMQ_HOME=/app/activemq#g' /app/activemq/bin/linux-x86-64/wrapper.confsed -i 's#set.default.ACTIVEMQ_BASE=.*#set.default.ACTIVEMQ_BASE=/app/activemq#g' /app/activemq/bin/linux-x86-64/wrapper.conf

3、设置自启动

ln -s /app/activemq/bin/linux-x86-64/activemq /etc/init.d/activemqchkconfig --add activemq   //检查、设定系统的各种服务chkconfig activemq onservice activemq start

4、测试是否启动

netstat -an|grep 61616

5、查看日志

tail -f /app/activemq/data/wrapper.log

6、管理平台

http://$SERVER:8161/admin/index.jsp


原文:http://blog.wains.be/2012/01/06/activemq-5-4-x-install-under-rhel-5-x/


原创粉丝点击