activemq的安装与配置1.首先官网下载activemqhttp://activemq.apache.org/activemq-5120-release.html2.然后解压tar -zxvf 源文件.tar.gz /usr/local/src/activMQ3.启动activemq进入到bin目录下,使用 ./active...

activemq的安装与配置
1.首先官网下载activemq
http://activemq.apache.org/activemq-5120-release.html
2.然后解压
tar -zxvf 源文件.tar.gz /usr/local/src/activMQ
3.启动activemq
进入到bin目录下,使用 ./activemq start
出现如下信息说明启动成功,即可访问管理界面:http://localhost:8161,默认的用户名与密码一般都是admin
出现以下信息说明启动成功
INFO: Loading ‘/usr/local/soft/apache-activemq-5.12.1//bin/env’
INFO: Using java ‘/usr/lib/jvm/jdk1.7.0_65/bin/java’
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : ‘/usr/local/soft/apache-activemq-5.12.1//data/activemq.pid’ (pid ‘5532’)
看到PID(进程号,每次会有所不同)
管理界面:
问题:
在linux下安装好ActiveMQ后,执行 ./activemq start 启动 ActiveMQ,显示:
INFO: Loading ‘/home/sso/activemq-5.14.2//bin/env’
INFO: Using java ‘/home/sso/jdk1.8.0_25/bin/java’
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : ‘/home/sso/activemq-5.14.2//data/activemq.pid’ (pid ‘12315’)
从提示信息看,似乎启动成功,但根据提示信息中的 pid 查找进程时,却发现并无此进程:
netstat -an|grep 61616 或者 ps -eLf | grep 12315
**
问题原因:
**
查看activemq日志:
cat /usr/local/src/activMQ/activemq-5.14.2/data/activemq.log 结果如下:
问题在上面第一个 ERROR 处
解决方案1(网上百度出的方案):
1.修改/etc/sysconfig/network
修改 hostname=xxx, 不能有下划线
2.修改/etc/hosts
添加刚刚 修改hostname的名字.
3.reboot 重启
4.重新启动active
解决方案2:
将 conf/activemq.xml 文件中 transportConnectors/transportConnector uri 属性中的 0.0.0.0 替换成你主机的域名,或者127.0.0.1
经过验证替换成127.0.0.1时启动activemq时还是会替换成主机名启动失败,直接替换成主机ip即启动成功。
本文标题为:Linux部署Apache ActiveMQ


基础教程推荐
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- Centos 安装Django2.1 2023-09-24
- windows环境下apache-apollo服务器搭建 2023-09-10
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- Docker容器操作方法详解 2022-11-13