admin管理员组文章数量:1618730
问题现象
[root@centos7 yang]# curl -X POST --header "Content-Type:application/json" --data '{"username":"yang"}' http://10.226.151.83:1611/service
curl: (56) Recv failure: Connection reset by peer
[root@centos7 yang]# curl -X POST --header "Content-Type:application/json" --data '{"username":"yang"}' http://10.226.151.8:1612/service
[root@centos7 yang]#
问题原因
出现此问题可能有多种情况,请结合自己的实际情况查询问题原因。
我这边是指定的端口号1611不对,1612不是一个http service的端口,是grpc的接口。
解决方法
更改为http service的端口1612即可解决
[root@centos7 yang]# curl -X POST --header "Content-Type:application/json" --data '{"username":"yang"}' http://10.226.151.8:1612/service
[root@centos7 yang]#
本文标签: RecvcurlfailurepeerReset
版权声明:本文标题:curl: (56) Recv failure: Connection reset by peer问题解决 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dongtai/1728785143a1173230.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论