启动nacos的时候发现客户端报错了
[ main] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,port 9848 is available , error ={}java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 15 milliseconds, 118500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@291373d3[status=PENDING, info=[GrpcFuture{clientCall={delegate={delegate=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@58ba5b30, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@4dba773d, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@1d9bd4da}}}}}]]
网上各种说是nacos版本不匹配的问题 后来发现是配置文件的bug
有bootstrap的时候会采用nacos的默认配置 所以一直读取本地的端口 把写在application.yml的nacos配置转移到bootstrap里就行了
来源地址:https://blog.csdn.net/qq_38838006/article/details/128479532