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的控制台管理端口
本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1885567,如需转载请自行联系原作者