2-activemq的单机部署

CentOS7下安装配置ActiveMQ

1.centos7 jdk环境

1
2
3
4
5
6
7
8
9
10
11
12
13
[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

1
2
3
4
5
6
7
8
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.修改默认管理员的密码

1
2
3
4
5
6
7
8
[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

1
2
3
4
5
6
7
8
9
10
11
12
[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.加入开机自动启动

1
echo  "/opt/activemq/activemq/bin/activemq  start "  >> /etc/rc . local

6.浏览 本机Ip:8161   

会让你输入密码;admin  123456 #刚才自己修改的

8161 activemq的控制台管理端口 

wKiom1hc3P6CGIyyAAENp3wch4Y775.png-wh_50










本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1885567,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值