centos下安装activemq
来源:互联网 发布:代码优化工具 编辑:程序博客网 时间:2024/06/05 10:11
centos下安装activemq
1、 安装 JDK 并配置环境变量(略)
JAVA_HOME=/usr/local/java/jdk1.7.0_72
2、 下载 Linux 版的 ActiveMQ(当前最新版 apache-activemq-5.11.1-bin.tar.gz)
$ wget http://apache.fayea.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz
3、 解压安装
$ tar -zxvf apache-activemq-5.11.1-bin.tar.gz
$ mv apache-activemq-5.11.1 activemq-01
如果启动脚本 activemq 没有可执行权限,此时则需要授权(此步可选)
$ cd /home/wusc/activemq-01/bin/
$ chmod 755 ./activemq
4、 防火墙中打开对应的端口
ActiveMQ 需要用到两个端口
一个是消息通讯的端口(默认为 61616)
一个是管理控制台端口(默认为 8161)可在 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"/>
添加:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT
2、 下载 Linux 版的 ActiveMQ(当前最新版 apache-activemq-5.11.1-bin.tar.gz)
$ wget http://apache.fayea.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz
3、 解压安装
$ tar -zxvf apache-activemq-5.11.1-bin.tar.gz
$ mv apache-activemq-5.11.1 activemq-01
如果启动脚本 activemq 没有可执行权限,此时则需要授权(此步可选)
$ cd /home/wusc/activemq-01/bin/
$ chmod 755 ./activemq
4、 防火墙中打开对应的端口
ActiveMQ 需要用到两个端口
一个是消息通讯的端口(默认为 61616)
一个是管理控制台端口(默认为 8161)可在 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>
注意:以下文件对于刚开始安装新系统的朋友可能没有这个文件,这是时候就要执行这个命令:yum -y install iptables-services
以下附上开放防火墙口令
这个时候就可以找到这个文件了
# vi /etc/sysconfig/iptables添加:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT
service iptables restart重启防火墙
5、 启动
$ cd /home/wusc/activemq-01/bin
$ ./activemq start
5、 启动
$ cd /home/wusc/activemq-01/bin
$ ./activemq start
6、 打开管理界面:http://192.168.4.101:8161
阅读全文
0 0
- centos下安装activemq
- centos下安装activemq
- centos安装activeMq
- centos 7安装ActiveMQ
- centos安装并使用activemq
- ActiveMQ CentOS集群安装部署
- ActiveMQ安装部署(Windows+Centos)
- centos下使用yum安装jdk java环境安装 activeMQ运行环境 tomcat安装
- linux下安装ActiveMQ
- Ubuntu下安装ActiveMQ
- ubuntu 下安装activemq
- Linux下activeMQ安装
- redhat下安装activeMQ
- mac 下安装 ActiveMQ
- linux下安装activeMq
- linux下activeMQ安装
- 在CentOS Linux下部署Activemq 5
- 在 centos 6.X中安装 activemq
- swiper的应用
- Spring Boot 学习系列一:Holle world
- 如何在网页标题栏title加入logo(icon)图标?
- 从零开始学_JavaScript_系列(四)——jquery(基础,选择器,触发条件,动画,回调函数)
- 新手玩vue
- centos下安装activemq
- 简单高效的端口扫描python脚本
- Linux下配置JDK
- Nginx源码剖析--HTTP请求的分阶段处理的初始化
- HTML5调用摄像头录制视频
- 问题build\intermediates\res\merged\debug\drawable-ldrtl-hdpi\
- Class.forName
- html 命名
- spring 学习(1) 了解spring 容器的初始化