摘要: 1. 先说问题 某天晚上9点左右正是业务高峰期,我们有台Nginx触发了响应状态码异常的告警,大量502。登录机器查看error log 输出的都是 Cannot assign requested address # 不能分配请求地址 2. 解决方案 [root@node-1 ~]# cat /et 阅读全文
posted @ 2022-04-18 20:24 白--茶 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: Nginx -t 检测语法时很慢怎么办? [root@node-2 ~]# time nginx -t nginx: the configuration file /usr/local/openresty/nginx/conf/nginx.conf syntax is ok nginx: confi 阅读全文
posted @ 2022-04-18 11:20 白--茶 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 记录请求头信息 比如下请求头部分信息: accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8 accept-encoding: gzip, deflate, br accept-language: zh-CN 阅读全文
posted @ 2022-04-18 11:14 白--茶 阅读(2713) 评论(0) 推荐(0) 编辑