消息中间件简介
ActiveMQ,kafka,RocketMQ等。。待定
安装
(1)安装zookeeper
安装步骤详见:
zookeeper集群搭建
(2)安装ActiveMQ
cd /usr/local/software
mkdir activemq ##创建文件夹
wget http://archive.apache.org/dist/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz ##下载
tar -zxvf apache-activemq-5.11.1-bin.tar.gz ##解压
mv apache-activemq-5.11.1 activemq-5.11 ##重命名
./activemq-5.11/bin/activemq start ##启动
验证:
访问 http://127.0.0.1:8161/admin/
可在conf/jetty.xml中自行修改端口:
<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start">
<!-- the default port number for the web console -->
<property name="host" value="0.0.0.0"/>
<property name="port" value="8161"/>
</bean>
在
conf/jetty-realm.properties中修改用户名密码:
admin: admin, admin
user: user, user
访问并登陆对应用户成功后显示如下页面: