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
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11
- IIS搭建ftp服务器的详细教程 2022-11-15
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23
- 阿里云ECS排查CPU数据分析 2022-10-06
- 【转载】CentOS安装Tomcat 2023-09-24
- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- 利用Docker 运行 python 简单程序 2022-10-16
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
