Change NACOS_SERVER_PORT to NACOS_APPLICATION_PORT

This commit is contained in:
paderlol 2020-05-28 10:32:47 +08:00
parent ba41672f2f
commit e413c1f015
3 changed files with 4 additions and 5 deletions

View File

@ -91,7 +91,7 @@ Run the following command
| MODE | cluster/standalone | cluster/standalone default **cluster** |
| NACOS_SERVERS | nacos cluster address | eg. ip1:port1 ip2:port2 ip3:port3 |
| PREFER_HOST_MODE | Whether hostname are supported | hostname/ip default **ip** |
| NACOS_SERVER_PORT | nacos server port | default **8848** |
| NACOS_APPLICATION_PORT | nacos server port | default **8848** |
| NACOS_SERVER_IP | custom nacos server ip when network was mutil-network | |
| SPRING_DATASOURCE_PLATFORM | standalone support mysql | mysql / empty default empty |
| MYSQL_SERVICE_HOST | mysql host | |

View File

@ -1,7 +1,7 @@
# spring
server.servlet.contextPath=${SERVER_SERVLET_CONTEXTPATH:/nacos}
server.contextPath=/nacos
server.port=${NACOS_SERVER_PORT:8848}
server.port=${NACOS_APPLICATION_PORT:8848}
spring.datasource.platform=${SPRING_DATASOURCE_PLATFORM:""}
nacos.cmdb.dumpTaskInterval=3600
nacos.cmdb.eventTaskInterval=10

View File

@ -1,3 +1,2 @@
version:1.2.0
1.构建nacos 1.2.0 最新镜像
2.增加权限相关属性配置
version:1.2.1
修改环境参数变量 修改NACOS_SERVER_PORT -> NACOS_APPLICATION_PORT,原因:Kubernetes 中如果出现服务名为NACOS_SERVER,会导致获取端口出现问题.