在腾讯云上配置部署程序后端问题

来源:6-12 阿里云部署微信小程序后端

慕勒5003861

2021-12-05

把jar包也跑了,日志输出正常,但在上面请求接口请求不到
图片描述

  • [root@VM-4-5-centos kafka_project]# curl -XGET http://localhost/v1/template
    curl: (7) Failed connect to localhost:80; Connection refused
  • [root@VM-4-5-centos kafka_project]# curl -XGET http://localhost:443/v1/template
    Bad Request
    This combination of host and port requires TLS.
  • [root@VM-4-5-centos kafka_project]# curl -XGET https://localhost/v1/template
    curl: (51) Unable to communicate securely with peer: requested domain name does not match the server’s certificate.
  • [root@VM-4-5-centos kafka_project]# curl -XGET https://localhost:443/v1/template
    curl: (51) Unable to communicate securely with peer: requested domain name does not match the server’s certificate.

我试了好几种都请求不到数据,本地代码可以正常访问数据,是我服务器上项目陪孩子有问题吗

写回答

1回答

Allen

2021-12-05

防火墙设置放行策略了么

0
4
Allen
回复
慕勒5003861
那就ps一下进程, 看看在不在。 远程服务器访问用localhost或者127.0.0.1,不要用远程ip再试试
2021-12-07
共4条回复

Kafka多维度系统精讲,从入门到实战开发

系统讲解Kafka,实战结合,让你成为使用Kafka的高手

896 学习 · 237 问题

查看课程