activemq 默认只能当前服务器访问,如果需要外部访问,需要修改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="192.168.213.133"/> // 将 127.0.0.1 修改为外网IP即可访问
<property name="port" value="8161"/>
</bean>
你是IP6,浏览器访问是IP4
修改/etc/systl.conf,添加
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
1.登陆阿里云
2.进入安全组
“控制台” -> “云服务器 ECS” -> 选择云服务器 -> “更多” -> “安全组配置”
3.配置规则
“配置规则” -> “添加安全组规则”
4.配置8080端口