首页 > 代码库 > 1-activemq的单机部署
1-activemq的单机部署
1.centos7 jdk环境
[root@localhost 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 [root@localhost jdk]# pwd /opt/jdk [root@localhost jdk]# [root@localhost 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) [root@localhost 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 [root@localhost 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.修改默认管理员的密码
[root@localhost conf]# pwd /opt/activemq/activemq/conf [root@localhost conf]# cat jetty-realm.properties # Defines users that can access the web (console, demo, etc.) # username: password [,rolename ...] admin: 123456, admin user: user, user [root@localhost conf]#
4.启动activemq
[root@localhost bin]# pwd /opt/activemq/activemq/bin [root@localhost bin]# [root@localhost 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的单机部署
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。