nginx -t 没问题,但是运行我配置的8085端口报错

来源:7-17 nginx配置

THEEND0123

2020-11-07

图片描述
error日志:
2020/11/07 23:49:43 [error] 11008#4992: *24 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: localhost, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:8081/”, host: "localhost:8085"
2020/11/07 23:49:45 [error] 11008#4992: *24 connect() failed (10061: No connection could be made because the target machine actively refused it) while connecting to upstream, client: 127.0.0.1, server: localhost, request: “GET / HTTP/1.1”, upstream: “http://[::1]:8081/”, host: "localhost:8085"
2020/11/07 23:49:50 [error] 11008#4992: *28 no live upstreams while connecting to upstream, client: 127.0.0.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, upstream: “http://localhost/favicon.ico”, host: “localhost:8085”, referrer: “http://localhost:8085/

写回答

1回答

THEEND0123

提问者

2020-11-08

老师,您好,实在不好意思,我帮端口号写错了!!实在太粗心的,实在打扰了!

0
0

Node.js+Express+Koa2+Nest.js 开发服务端

从入门到实战,一站式掌握 Node.js+Express+Koa2

4132 学习 · 2024 问题

查看课程