ActiveMQ 的搭建

搭建

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 通过sftp上传压缩包
sftp> put /Users/niuhesm/resouces/major/remoteServer/apache-activemq-5.15.3-bin.tar.gz /root


# 启动消息队列服务
[root@iZuf6iq8e7ya9v3ix71k0pZ ~]# tar zxvf apache-activemq-5.15.3-bin.tar.gz
[root@iZuf6iq8e7ya9v3ix71k0pZ ~]# cd apache-activemq-5.15.3/bin
[root@iZuf6iq8e7ya9v3ix71k0pZ bin]# ./activemq start
INFO: Loading '/root/apache-activemq-5.15.3//bin/env'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/root/apache-activemq-5.15.3//data/activemq.pid' (pid '15876')
[root@iZuf6iq8e7ya9v3ix71k0pZ bin]#

后台管理页面
机器名和ip地址的映射(后台如果出现503错误)
1
2
3
4
5
6
7
8
9
10
11
12
[root@iZuf6iq8e7ya9v3ix71k0pZ bin]# cat /etc/sysconfig/network
# Created by anaconda
PEERNTP=no
NETWORKING_IPV6=no
GATEWAY=172.xx.xx.253
HOSTNAME=iZuf6iq8e7ya9v3ix71k0pZ
[root@iZuf6iq8e7ya9v3ix71k0pZ bin]# cat /etc/hosts
127.0.0.1 localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
106.xx.xx.27 iZuf6iq8e7ya9v3ix71k0pZ
#172.19.106.154 iZuf6iq8e7ya9v3ix71k0pZ
[root@iZuf6iq8e7ya9v3ix71k0pZ bin]#

应用

taotao-manager
​ 添加商品,发送信息
taotao-search
​ 接受信息,同步 solr 库
https://github.com/SmNiuhe/taotao