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

注册服务失败 #7

Open
StoneStarChan opened this issue May 8, 2022 · 9 comments
Open

注册服务失败 #7

StoneStarChan opened this issue May 8, 2022 · 9 comments

Comments

@StoneStarChan
Copy link

为什么我运行main函数总是注册服务失败

@CANGWU
Copy link
Contributor

CANGWU commented May 9, 2022

请问有安装consul吗,或者consul的地址是否有重新指定?

@StoneStarChan
Copy link
Author

安装了consul,oauth服务可以启动,但是其它服务都启动不成功。这个问题已经困扰我几天了,一直没办法解决

@CANGWU
Copy link
Contributor

CANGWU commented May 9, 2022

请问是在测试ch13-seckill这一章的服务吗?有相关错误信息或者截图提供一下吗?服务的配置文件是否修改过?

@StoneStarChan
Copy link
Author

235f3d0f26e96a7641ba4b8071defb5
这是我运行时候的信息,显示注册失败。没明白为什么

@CANGWU
Copy link
Contributor

CANGWU commented May 9, 2022

image

这个consul的地址改成本地的吗?

@StoneStarChan
Copy link
Author

image
是的,所有的地址都已经修改过了。但是,运行时就是注册失败

@CANGWU
Copy link
Contributor

CANGWU commented May 9, 2022

服务启动的机器能直接访问127.0.0.1:8500吗,是否有consul正常运行

@StoneStarChan
Copy link
Author

有consul在运行,oauth服务可以正常启动,但是其它的服务都是显示注册失败。这个问题我也很困扰

@CANGWU
Copy link
Contributor

CANGWU commented May 9, 2022

image
麻烦补一下权重试试

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