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

.net8 怎么跳过Apollo Meta Server服务发现? #245

Closed
hyy-8567 opened this issue Sep 9, 2024 · 5 comments
Closed

.net8 怎么跳过Apollo Meta Server服务发现? #245

hyy-8567 opened this issue Sep 9, 2024 · 5 comments

Comments

@hyy-8567
Copy link

hyy-8567 commented Sep 9, 2024

Apollo服务是部署在阿里云上,本机.net客户端无法拉取配置(如果把本机客户端程序部署到阿里云,则正常拉取配置)
1.net8 怎么跳过Apollo Meta Server服务发现?
按文档上,在本机目录C:\opt\settings\server.properties里面配置了:apollo.config-service=http://阿里云服务域名xxx 没有用
2.本机.net客户端启动的时候,Apollo(客户端)有异常

2
请问怎么解决?

@pengweiqhca
Copy link
Contributor

文档请查看对应集成框架的文档,里面有如何跳过服务发现的内容

@hyy-8567
Copy link
Author

hyy-8567 commented Sep 9, 2024

文档请查看对应集成框架的文档,里面有如何跳过服务发现的内容

您好,我看文档,就是配置C:\opt\settings\server.properties,但是我怎么配置都不行

@pengweiqhca
Copy link
Contributor

你应该是看的老文档,点击链接看新文档

@hyy-8567
Copy link
Author

你应该是看的老文档,点击链接看新文档

请问,我本机客户端总是拉取不到阿里云服务器部署apollo服务配置(如果把本机程序,发布到服务器,那可以拉取到),这一般哪些地方设置有问题呢?

@hyy-8567
Copy link
Author

谢谢,我已经解决了,加入这个配置,就可以跳过MetaServer服务发现,解决本机访问公网服务的问题
{
"apollo": {
"ConfigServer": ["http://81.68.181.139:8080/"]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants