Code Monkey home page Code Monkey logo

Comments (8)

578223592 avatar 578223592 commented on June 7, 2024

在执行完./provider后,在另一个终端执行。/consumer出现RPC请求失败 image image ./provider后的ip是127.0.0.1但是./consumer的ip是127.0.1.1,是不能重开终端运行吗

1.可以重开终端运行,这个没有影响
2.关于127.0.0.1 和 127.0.1.1,在写的时候查了一下好像Ubuntu的回环地址是127.0.1.1而不是127.0.0.1,记不清了,你可以帮我试一下,非常感谢
3.我稍后会在本机上再尝试一下

from kvstoragebaseraft-cpp.

Gump5236 avatar Gump5236 commented on June 7, 2024

@578223592 我使用的是centos7,回环地址应该都是127.0.0.1 —> 127.255.255.254吧?不明白为啥会连接失败

from kvstoragebaseraft-cpp.

578223592 avatar 578223592 commented on June 7, 2024

@578223592 我使用的是centos7,回环地址应该都是127.0.0.1 —> 127.255.255.254吧?不明白为啥会连接失败

@Gump5236 我刚测试了一下,是可以运行的,我怀疑可能是你的防火墙之类的设置是否有问题,也许你可以尝试下一个最简单的tcp服务器和客户端(网上很多),看下能否成功。

from kvstoragebaseraft-cpp.

tantancoding avatar tantancoding commented on June 7, 2024

请问你解决了吗?我也是centos,一摸一样的问题

from kvstoragebaseraft-cpp.

Gump5236 avatar Gump5236 commented on June 7, 2024

@tantancoding 并未解决

from kvstoragebaseraft-cpp.

tantancoding avatar tantancoding commented on June 7, 2024

能否加个v 私聊一下,
dts1213

from kvstoragebaseraft-cpp.

rocshawn avatar rocshawn commented on June 7, 2024

我也是centos的系统。我把callFriendService.cpp里string ip改为127.0.0.1后也不行。但是我看运行provider后显示的是服务器的私网ip,我就改成一样了。不知道有没有帮助,反正我这样是可以的。

from kvstoragebaseraft-cpp.

diadestiny avatar diadestiny commented on June 7, 2024

对的,把callFriendService.cpp里string ip改成运行provider后显示的ip就可以了

from kvstoragebaseraft-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.