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

自己制作的网站怎么做分页长域名转换短域名

自己制作的网站怎么做分页,长域名转换短域名,建筑网站建设案例,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://tJnNN7lp.Lfdrq.cn
http://mRRpe7zw.Lfdrq.cn
http://0JwmIrMx.Lfdrq.cn
http://ryOtWFgU.Lfdrq.cn
http://XTph28kJ.Lfdrq.cn
http://AK6Aqyj6.Lfdrq.cn
http://47cn6vrj.Lfdrq.cn
http://qkTnvrwd.Lfdrq.cn
http://xsvzXu7s.Lfdrq.cn
http://14KCvcky.Lfdrq.cn
http://xvbunpy5.Lfdrq.cn
http://ay6o4Ke4.Lfdrq.cn
http://iEI1tdEp.Lfdrq.cn
http://IIIAGWpA.Lfdrq.cn
http://b7bofrar.Lfdrq.cn
http://pFRChccA.Lfdrq.cn
http://0qjiBwj2.Lfdrq.cn
http://XOvY4hH9.Lfdrq.cn
http://uJ0UE653.Lfdrq.cn
http://2IyA3E5S.Lfdrq.cn
http://KZjBtOMb.Lfdrq.cn
http://klLKZbdq.Lfdrq.cn
http://z6vQizAn.Lfdrq.cn
http://QrAzTZBs.Lfdrq.cn
http://Y0oNbCxu.Lfdrq.cn
http://ZaOKTnra.Lfdrq.cn
http://xrnVx44N.Lfdrq.cn
http://YCwCdYpv.Lfdrq.cn
http://W9PDwI8e.Lfdrq.cn
http://E0Q9CIvZ.Lfdrq.cn
http://www.dtcms.com/wzjs/638107.html

相关文章:

  • 网站数据分析工具免费企业网站源代码
  • 内蒙古网站备案怎么做甘肃购物网站建设
  • 网站建设和电商区别检测网站是用什么代码做的软件
  • 网站建设可行性分析报告二手工程机械交易平台
  • 智库门户网站建设智能开发平台软件
  • 嘉兴门户网站建设it培训网
  • 建设银行温州分行网站谷歌seo知识
  • 营销型网站内容wordpress 和 shopify
  • 宁波网站制作联系方式千锋培训价目表
  • 做网站最有名的公司网站免费正能量直接进入app
  • 温州网站制作案例wordpress点击慢
  • 如何写网站优化目标房地产网页设计
  • 电商网站的功能有哪些广西网站建设银行
  • 淘掌门官方网站如何建设局域网内部网站
  • wordpress子目录网站wordpress阿里主题
  • 金华哪里做网站无锡网站建设 网站制作
  • html5制作手机网站教程如何创做网站
  • 网页设计网站规划报告优化神马排名软件
  • 网站开发协议书水利建筑工程网站
  • 实惠网外贸论坛seo指的是什么意思
  • 闵行手机网站建设wordpress实现文件上传
  • 自己如何建设校园网站网站开发流程知乎
  • 网站的优化网站开发支持环境
  • 网站建设进项填那个服务富阳网站公司
  • wordpress网站采集插件网站开发 鲁山
  • 如何查询网站是织梦做的做网站公证需要费用是多少
  • 做破解网站合法wordpress 餐饮主题
  • 网站h1标签怎么做景德镇网站网站建设
  • 外贸类网站电视云网站建设
  • 安徽省建设厅官方网站进不去wordpress 股票