Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 尤里卡是在8761还是8080上运行?_Spring_Netflix Eureka_Spring Cloud Netflix - Fatal编程技术网

Spring 尤里卡是在8761还是8080上运行?

Spring 尤里卡是在8761还是8080上运行?,spring,netflix-eureka,spring-cloud-netflix,Spring,Netflix Eureka,Spring Cloud Netflix,我已经创建了一个具有“SpringCloudStarter netflix eureka服务器”依赖项的新spring启动项目。还添加了“@EnableEurekaServer”注释并启动了spring boot应用程序 我看到下面的日志消息 o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) c.n.eureka.cluster.PeerEurekaNodes

我已经创建了一个具有“SpringCloudStarter netflix eureka服务器”依赖项的新spring启动项目。还添加了“@EnableEurekaServer”注释并启动了spring boot应用程序

我看到下面的日志消息

o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)

c.n.eureka.cluster.PeerEurekaNodes       : Adding new peer nodes [http://localhost:8761/eureka/]
据我所知,从上面看。Tomcat在端口8080上运行,eureka服务器在端口8761上运行

如果是,

  • 为什么Eureka仪表板可以在http://localhost:8080/ ? eureka服务器何时在端口8761上运行

  • 在一个客户端上,我在.properties文件中配置了以下内容

    eureka.client.service-url.defaultZone=http://localhost:8761/eureka/

  • 上面,我指定了Eureka服务器的位置。但是,为什么客户端无法注册


    谢谢

    默认情况下,它在8761上工作,因此配置server.port=8761