当前位置: 首页 > news >正文

电商网站做互联网金融15个平面设计图素材网站

电商网站做互联网金融,15个平面设计图素材网站,外国人做汉字网站,wordpress顶部图像1、access.log什么时候打印&#xff1f; 经过测试&#xff0c;观察到access.log是在后端返回响应结果之后才打印的&#xff0c;不过也很好理解&#xff0c;nginx要等后端返回才知道是否处理成功。 2、nginx什么时候出现upstream timed out&#xff1f; nginx超时时间<接口…

1、access.log什么时候打印?

经过测试,观察到access.log是在后端返回响应结果之后才打印的,不过也很好理解,nginx要等后端返回才知道是否处理成功。

2、nginx什么时候出现upstream timed out?

nginx超时时间<接口响应时间,就会出现upstream timed out.

3、nginx什么时候出现no live upstreams?

测试过程日下

后端接口:

@RestController
public class BasicController {private static final Logger logger = LoggerFactory.getLogger(BasicController.class);@GetMapping("/xxx/test")public String hello() throws InterruptedException {logger.info("xxxtest");Thread.sleep(50000);return "success";}
}

开启了两个端口8080和8081,启动项目

nginx配置如下:


worker_processes  1;events {worker_connections  1024;
}http {include       mime.types;default_type  application/json;sendfile        on;keepalive_timeout  65;server {listen       80;server_name  localhost;# 指定前端项目所在的位置error_page   500 502 503 504  /50x.html;location = /50x.html {root   html;}location / {  # 设置超时时间  proxy_read_timeout 20s;  proxy_connect_timeout 20s;  proxy_send_timeout 20s;proxy_next_upstream error timeout;# 其他代理设置(可选)proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;proxy_pass http://backend;}}upstream backend {server 127.0.0.1:8080;server 127.0.0.1:8081;}
}

日志如下:

access.log

127.0.0.1 - - [07/Jun/2025:22:53:32 +0800] "GET /xxx/test HTTP/1.1" 502 497 "-" "PostmanRuntime/7.44.0"
127.0.0.1 - - [07/Jun/2025:22:53:50 +0800] "GET /xxx/test HTTP/1.1" 504 497 "-" "PostmanRuntime/7.44.0"

error.log

2025/06/07 22:53:30 [error] 44212#13196: *25 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xxx/test HTTP/1.1", upstream: "http://127.0.0.1:8081/xxx/test", host: "localhost"
2025/06/07 22:53:32 [error] 44212#13196: *27 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xxx/test HTTP/1.1", upstream: "http://127.0.0.1:8080/xxx/test", host: "localhost"
2025/06/07 22:53:32 [error] 44212#13196: *27 no live upstreams while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /xxx/test HTTP/1.1", upstream: "http://backend/xxx/test", host: "localhost"
2025/06/07 22:53:50 [error] 44212#13196: *25 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /xxx/test HTTP/1.1", upstream: "http://127.0.0.1:8080/xxx/test", host: "localhost"


 

 

http://www.dtcms.com/a/527154.html

相关文章:

  • seo排名工具站长广东阳江最新消息
  • 网站开发要什么样的环境wordpress数据库结构
  • 如何提高网站seo排名极速微网站建设cms
  • 贵州建设厅二建考试网站上海外贸出口代理公司
  • 宁波网站seo定制网站建设的书籍
  • 搜寻的网站有哪些重庆营销型网站开发公司
  • 网站右侧浮动寮步建设网站
  • phpcms 多语言网站苏州专业高端网站建设公司
  • 网站开发代理合同写wordpress博客程序
  • 微电影网站源码xiazai做官网的步骤
  • 青岛网站建设eoe手机赚钱一天400元
  • 网站建设企业公司正规营销型网站培训中心
  • 专做婚礼logo的网站门户网站建设需要多少钱
  • 四川网站建设公司 会员登录南宁模板做网站
  • 网站建设策dw php免费一天赚500元游戏
  • 刚学做网站怎么划算做网站每一步的是什么
  • 中高风险地区名单seo0577
  • 保定建设银行网站首页昆山做百度网站
  • 网络推广和网站推广怎么用云虚拟主机建设网站
  • 免费一键搭建网站网站运营与数据分析
  • 江门网站优化做游戏的软件app
  • 南京网站搜索排名软件工程考研难度
  • 东莞整合网站建设开发建设校园网站国外研究现状
  • 凡科这样的建站网站小程序代理多少钱
  • jsp网站开发实例标题栏定安住房和城乡建设局网站
  • 昆山市网站建设腾讯企点怎么注册
  • 新建网站求友链平台设计网站推荐设计酷站
  • 连云港网站建设sitall软件ui设计培训学校
  • 做h5页面网站有哪些wordpress 商城插件
  • 海口网站建设王道下拉棒免费空间浏览量