From 7cb9e950489304d2fc3b00c82b61bbb896e1d215 Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Wed, 8 Apr 2015 00:11:07 +0800 Subject: [PATCH] Update 70.1. Change the HTTP port or address of the actuator endpoints.md --- ...Change the HTTP port or address of the actuator endpoints.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IX. ‘How-to’ guides/70.1. Change the HTTP port or address of the actuator endpoints.md b/IX. ‘How-to’ guides/70.1. Change the HTTP port or address of the actuator endpoints.md index e69de29..2385d8a 100644 --- a/IX. ‘How-to’ guides/70.1. Change the HTTP port or address of the actuator endpoints.md +++ b/IX. ‘How-to’ guides/70.1. Change the HTTP port or address of the actuator endpoints.md @@ -0,0 +1,6 @@ + +### 70.1. 改变HTTP端口或执行器端点的地址 + +在一个单独的应用中,执行器的HTTP端口默认和主HTTP端口相同。想要让应用监听不同的端口,你可以设置外部属性`management.port`。为了监听一个完全不同的网络地址(比如,你有一个用于管理的内部网络和一个用于用户应用程序的外部网络),你可以将`management.address`设置为一个可用的IP地址,然后将服务器绑定到该地址。 + +查看[ManagementServerProperties](http://github.com/spring-projects/spring-boot/tree/master/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementServerProperties.java)源码和'Production-ready特性'章节中的[Section 41.3, “Customizing the management server port”](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-ready-customizing-management-server-port)来获取更多详情。