1-activemq的单机部署
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1-activemq的单机部署相关的知识,希望对你有一定的参考价值。
1.centos7 jdk环境
[[email protected] jdk]# ll total 176996 lrwxrwxrwx 1 root root 11 Dec 23 23:48 jdk -> jdk1.8.0_60 drwxr-xr-x 8 10 143 4096 Aug 5 2015 jdk1.8.0_60 -rw-r--r-- 1 root root 181238643 Jun 15 2016 jdk-8u60-linux-x64.tar.gz [[email protected] jdk]# pwd /opt/jdk [[email protected] jdk]# [[email protected] conf]# java -version java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) [[email protected] conf]#
2.下载activemq
cd /opt/activemq wget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz tar xf apache-activemq-5.9.0-bin.tar.gz [[email protected] activemq]# ll total 54144 lrwxrwxrwx 1 root root 21 Dec 23 23:45 activemq -> apache-activemq-5.9.0 drwxr-xr-x 11 501 games 4096 Dec 23 23:49 apache-activemq-5.9.0 -rw-r--r-- 1 root root 55438331 Oct 21 2013 apache-activemq-5.9.0-bin.tar.gz
3.修改默认管理员的密码
[[email protected] conf]# pwd /opt/activemq/activemq/conf [[email protected] conf]# cat jetty-realm.properties # Defines users that can access the web (console, demo, etc.) # username: password [,rolename ...] admin: 123456, admin user: user, user [[email protected] conf]#
4.启动activemq
[[email protected] bin]# pwd /opt/activemq/activemq/bin [[email protected] bin]# [[email protected] bin]# ./activemq start INFO: Using default configuration (you can configure options in one of these file: /etc/default/activemq /root/.activemqrc) INFO: Invoke the following command to create a configuration file ./activemq setup [ /etc/default/activemq | /root/.activemqrc ] INFO: Using java ‘/opt/jdk/jdk/bin/java‘ INFO: Process with pid ‘21784‘ is already running
5.加入开机自动启动
echo "/opt/activemq/activemq/bin/activemq start " >>/etc/rc.local
6.浏览 本机Ip:8161
会让你输入密码;admin 123456 #刚才自己修改的
8161 activemq的控制台管理端口
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1885567
以上是关于1-activemq的单机部署的主要内容,如果未能解决你的问题,请参考以下文章
微服务学习-SpringCloud -Nacos (单机部署)