当前位置: 代码迷 >> 综合 >> 安装最新的activeMq时,远程无法访问
  详细解决方案

安装最新的activeMq时,远程无法访问

热度:37   发布时间:2024-01-30 22:17:40.0

在我们安装启动完activemq时,外网无法访问这就让人很难受了。

解决思路:

1.确保activemq启动成功. ps -ef | grep activemq  如果没有启动,可以在activemq目录的data下查看启动日志,找到问题原因,针对性解决

2.确保防火墙已经关闭,或者对应端口已经开放(云服务器)

  自己的虚拟机 : systemctl status firewalld   如果 没有关闭   systemctl status firewalld  systemctl disable firewalld 

  云服务器:登录管理后台,开放对应端口

3.在确保上述问题都已经解决,还是无法远程连接。此时需要查看启动的配置文件jetty.xml

 <bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start"><!-- the default port number for the web console --><property name="host" value="127.0.0.1"/><property name="port" value="8161"/></bean>

如果host的值是127.0.0.1需要将其改为对应的外网ip或内网ip,重启。

通过上述方式的检查应该可以实现外网访问了

  相关解决方案