nacos服务地址为内网地址
springcloud注册服务时应该怎样配置端口和IP地址
spring:
cloud:
nacos:
discovery:
ip: 192.168.136.1:8848
port: 8848
inetutils:
ignored-interfaces: eth.*
preferred-networks: 127.0.0
这样配置无法注册到nacos注册中心
nacos服务地址为内网地址
springcloud注册服务时应该怎样配置端口和IP地址
spring:
cloud:
nacos:
discovery:
ip: 192.168.136.1:8848
port: 8848
inetutils:
ignored-interfaces: eth.*
preferred-networks: 127.0.0
这样配置无法注册到nacos注册中心
这个是我们开发服务器上的配置,可以参考下
server:
port: 30037
logging:
level:
root: INFO
file: logs/config-service.log
spring:
application:
name: config-service
cloud:
nacos:
discovery:
server-addr: 192.168.16.190:8848
datasource:
url: jdbc:mysql://192.168.16.190:3306/config?useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai
username: username
password: password
redis:
host: 192.168.16.190
port: 6379
password: password
database: 0
timeout: 3000
swagger2:
enable: true