【ActiveMq】linux ActiveMq安装

1.官网下载

http://activemq.apache.org/components/classic/download/

2.使用xftp 上传到 linux下 opt文件

3.解压缩

[root@localhost opt]# tar -zxvf apache-activemq-5.15.11-bin.tar.gz 

4.在根目录下创建一个文件夹

[root@localhost /]# pwd
/
[root@localhost /]# mkdir myactivemq

5.将opt下解压的activemq拷贝到/myactivemq文件夹下

[root@localhost /]# cp -r /opt/apache-activemq-5.15.11  /myactivemq/
[root@localhost /]# ls -l

6.进入myactivemq文件夹下activemq/bin目录中

7.直接启动activemq

[root@localhost bin]# ./activemq start 

8.启动成功

INFO: Loading '/myactivemq/apache-activemq-5.15.11//bin/env'
INFO: Using java '/opt/jdk1.7.0_79/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/myactivemq/apache-activemq-5.15.11//data/activemq.pid' (pid '3270')

代表启动成功。

因为启动activemq需要安装jdk环境 所以需要提前安装好jdk环境。

9.查看activemq是否启动

./activemq status 

10.开放linux8161端口号

[root@localhost bin]# service iptables status #防火墙状态
[root@localhost bin]# service iptables start  #防火墙开启
[root@localhost bin]# service iptables stop  #防火墙关闭
[root@localhost bin]# vim /etc/sysconfig/ip  #进入到iptables 修改文件

然后再次启动防火墙就可以了。

发布了264 篇原创文章 · 获赞 347 · 访问量 17万+

猜你喜欢

转载自blog.csdn.net/jia970426/article/details/104445928