我设置了一个Turbine应用程序,当我在本地运行它时,一切都运行得很好。
应用程序出现在Cloud Foundry中,但是Hystrix Dashboard似乎无法连接到:8989/turine.stream
无法连接到命令度量流。
在Cloud Foundry中,我需要为/turbine.stream公开一个服务吗?
这些应用程序都连接到rabbitmq。
Turbine应用程序在yml中配置:
server:
port: ${PORT:8990}
turbine:
stream:
port: 8989这是应用程序
@SpringBootApplication
@EnableTurbineStream
@EnableDiscoveryClient
public class TurbineApplication {
public static void main( String[] args ) {
new SpringApplicationBuilder( TurbineApplication.class ).run( args );
}
}发布于 2015-12-15 04:25:08
这就是解决方案。我的配置错误。
server:
port: ${PORT:8989}
management:
port: 8990
---
spring:
profiles: cloud
management:
port: -1看起来我需要关闭管理端口,将其设置为-1,以便只有Rx Netty服务器在8080上启动。
https://stackoverflow.com/questions/34273210
复制相似问题