Comments (8)
在执行完./provider后,在另一个终端执行。/consumer出现RPC请求失败 ./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.
@578223592 我使用的是centos7,回环地址应该都是127.0.0.1 —> 127.255.255.254吧?不明白为啥会连接失败
from kvstoragebaseraft-cpp.
@578223592 我使用的是centos7,回环地址应该都是127.0.0.1 —> 127.255.255.254吧?不明白为啥会连接失败
@Gump5236 我刚测试了一下,是可以运行的,我怀疑可能是你的防火墙之类的设置是否有问题,也许你可以尝试下一个最简单的tcp服务器和客户端(网上很多),看下能否成功。
from kvstoragebaseraft-cpp.
请问你解决了吗?我也是centos,一摸一样的问题
from kvstoragebaseraft-cpp.
@tantancoding 并未解决
from kvstoragebaseraft-cpp.
能否加个v 私聊一下,
dts1213
from kvstoragebaseraft-cpp.
我也是centos的系统。我把callFriendService.cpp里string ip改为127.0.0.1后也不行。但是我看运行provider后显示的是服务器的私网ip,我就改成一样了。不知道有没有帮助,反正我这样是可以的。
from kvstoragebaseraft-cpp.
对的,把callFriendService.cpp里string ip改成运行provider后显示的ip就可以了
from kvstoragebaseraft-cpp.
Related Issues (20)
- make时报错 HOT 3
- 没有生成test.conf HOT 3
- 请问怎么分析火焰图 HOT 3
- Raft::sendRequestVote函数中RequestVote的来源问题 HOT 6
- doc:目录导览
- Raft::RequestVote中的getLastLogIndex()函数返回值 HOT 3
- 快照功能
- 宕机测试 HOT 1
- 关于Raft测试 HOT 1
- 未生成快照 HOT 7
- raft调用InstallSnapshot存在重复的问题 HOT 1
- 编译 HOT 3
- error HOT 2
- 在rpc中创建cmake-build-debug执行cmake成功,bin文件夹没有生成对应的可执行文件 HOT 2
- m_nextIndex与m_matchIndex变量值相关疑问 HOT 4
- make遇到了如下问题 HOT 3
- 使用clion-cmake运行raftCoreRun出现 delimiter[abi:cxx11] 重定义问题 HOT 3
- raftCoreRun运行出问题 HOT 2
- ubuntu安装muduo出现ByteSize问题和解决方法 HOT 2
- 请教:安装muduo时出现错误,但貌似确实安装了protobuf,求教排查与解决方法 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kvstoragebaseraft-cpp.