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

天猫店铺装修做特效的网站seo工作职责

天猫店铺装修做特效的网站,seo工作职责,手把手做网站,漫蛙漫画网页版链接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/wzjs/33892.html

相关文章:

  • 域名注册的网址长沙关键词优化服务
  • 网站ip被屏蔽怎么办广州seo网站推广优化
  • 线上设计师靠谱吗长沙优化科技
  • 猪八戒托管赏金做网站新手怎么引流推广
  • 现在可以做网站么百度指数的搜索指数
  • 建设银行成都开发中心网站网页制作
  • 毕业论文网站开发需要多少钱sem优化软件哪家好
  • 做外贸自己的公司网站企业seo推广
  • 都有哪些方法做动态网站的静态化厦门seo屈兴东
  • 怎么做卖橘子的网站十大最靠谱培训机构
  • 腾讯云服务器如何建设网站查域名注册详细信息查询
  • 知名的设计公司网站网络营销策划书3000字
  • 雄安做网站优化网站seo优化推广
  • 运营公众号还是做网站腾讯企点官网
  • 铜陵网站开发网站优化与seo
  • 政务公开网站建设管理营销推广网站
  • webstation做网站cdq百度指数
  • 培训机构活动策划网站代码优化
  • 大连制作网站成人大专
  • 网站开发常用的前端框架百度热搜榜今日头条排名
  • 手机企业网站制作流程如何在百度上做广告宣传
  • 网站全景图怎么做天津优化公司哪家好
  • 乐陵网站开发网络营销发展现状与趋势
  • 做网站什么内容吸引人现在感染症状有哪些
  • 成都网站建设价格表百度竞价排名查询网站
  • 石家庄做网站哪家公司好国家市场监管总局官网
  • 云南手工活外发加工网东莞网站推广及优化
  • 网站备案表格下载网站排名优化+o+m
  • 昆明市住房和城乡建设局网站上看的app优化
  • 公司做网站属于什么费用站长工具的使用seo综合查询排名