Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在yudao-cloud快速启动后端中的网关启动遇到问题 #191

Closed
gymsg opened this issue Nov 20, 2024 · 1 comment
Closed

在yudao-cloud快速启动后端中的网关启动遇到问题 #191

gymsg opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@gymsg
Copy link

gymsg commented Nov 20, 2024

报错类型为gateway-server的服务注册到Nacos服务注册中心时失败,具体内容如下:
2024-11-20 19:03:45.171 | ERROR 1256 | main [TID: N/A] c.a.c.n.registry.NacosServiceRegistry | nacos registry, gateway-server register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='127.0.0.1:8848', username='', password='', endpoint='', namespace='dev', watchDelay=30000, logName='', service='gateway-server', weight=1.0, clusterName='', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={IPv6=[2001:da8:204:1921:0:425:2a57:11e], preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.188.1', networkInterface='', port=48080, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true}},
关于nacos,我按照该文档,只实现了最简单的单机部署,并按照要求创建了dev命名空间,但我注意到文档的截图中该命名空间已经有了一个配置文件,所以我也创建了一个配置文件,但内容不知道是什么,所以我不知道是不是配置文件的问题,如果不是,那有可能哪里出了问题呢,是不是网关文件夹下的application-local.yaml需要修改呢
屏幕截图 2024-11-20 201238
image

@YunaiV
Copy link
Owner

YunaiV commented Nov 22, 2024

1、看看 9848 端口是否开通
2、配置可以先删除,参考 https://cloud.iocoder.cn/quick-start/

@YunaiV YunaiV closed this as completed Nov 22, 2024
@YunaiV YunaiV self-assigned this Nov 22, 2024
@YunaiV YunaiV added the question Further information is requested label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants