首页 > 解决方案 > 在 MacOS 中查找 ActiveMQ 的端口

问题描述

我已经使用以下命令使用自制软件安装了 ActiveMQ:

brew install apache-activemq

之后,我运行以下命令:

brew services start activemq

之后,我看到以下输出:

Successfully stopped `activemq` (label: homebrew.mxcl.activemq)
Successfully started `activemq` (label: homebrew.mxcl.activemq)

我预计到这个地址http://localhost:8161/admin之后,我会看到 ActiveMQ 的登录页面,但是地址不起作用。如何找到应该分配给 ActiveMQ 的端口?有什么问题吗?

标签: activemq

解决方案


我在使用 brew 启动服务时遇到了类似的问题。

而不是 $brew 服务启动 activemq

使用
$activemq 启动
$activemq 停止

如果您的路径设置不正确,请尝试此操作

$ sh /usr/local/Cellar/activemq/5.16.2/bin/activemq 启动
$ sh /usr/local/Cellar/activemq/5.16.2/bin/activemq 停止

在这里,5.16.2 是我安装的版本,将其替换为您安装的任何版本。


推荐阅读