【Linux软件安装】Centos 安装 ActiveMQ

官网地址:http://activemq.apache.org/
老规矩,在/usr/local/目录下新建software目录

#wget  http://apache.website-solution.net//activemq/5.15.8/apache-activemq-5.15.8-bin.tar.gz
#tar -zxvf apache-activemq-5.15.8-bin.tar.gz
#mv apache-activemq-5.15.8 ../activemq
#cd /usr/local/activemq/bin/
#./activemq start

问题一:
【Linux软件安装】Centos 安装 ActiveMQ_第1张图片
看消息很明显要我们安装Java环境

拓展Centos JRE环境安装(这里咱们安装JRE 1.8)
打开JRE1.8官网下载页 https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
【Linux软件安装】Centos 安装 ActiveMQ_第2张图片
勾选协议,选择自己的系统版本下载,下载面板有有效的下载链接(右键复制拿到的链接是无法下载的,注意参考下面下载链接的参数),然后在Centos上面打开下载:

#wget https://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jre-8u191-linux-x64.tar.gz?AuthParam=1546338379_1368c3dc97156858f3cd2388e5f987e6

下载完毕文件后缀名需要自己手动修正一下(tar.gz后缀)

#tar -zxvf jre-8u191-linux-x64.tar.gz
#mv jre1.8.0_191/ ../jre
#vi /etc/profile

在/etc/profile 文件最后添加

export JAVA_HOME=/usr/local/jre
export PATH=$PATH:/usr/local/jre/bin

执行命令,让配置生效

#source /etc/profile
#java -version

java -version 查看能显示Java版本号即安装成功!

重新启动ActiveMQ

#cd /usr/local/activemq/bin/
#./activemq start

启动成功
在这里插入图片描述
检查进程情况(ps -ef | grep activemq)
在这里插入图片描述

注意:防火墙需要打开61616跟8161端口(云服务器需要配置安全规则

end

推荐文章:
RedisDesktopManager连接远程Linux系统的Redis服务
Linux与Window系统间Redis主从配置
MyBatis基于Spring-boot集成通用Mapper以及pagehelper分页插件

你可能感兴趣的:(Linux)