![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
miheal_near
这个作者很懒,什么都没留下…
展开
-
linux定时shell处理nginx日志自动配置ip黑名单
这几天每天访问量一台ip居然可以到1000W,把我服务器撑爆了,所以做了个自动加ip黑名单的定时任务脚本。首先配置一个shell脚本addblackip.sh#!/bin/sh#是否需要reload nginxneedRefresh=false#把黑名单的配置文件读取一下blackFile=/xxx/nginx/blockips.confblackIp=`cat $blackFile`#把nginx的访问日志读取汇总统计倒序排列,并且只拿访问量大于5W的数据#awk针对32位的linux原创 2021-10-29 10:40:38 · 793 阅读 · 0 评论 -
上传大数据文件,测试环境前端报net::ERR_FAILED错误,测试环境使用的nginx
net::ERR_FAILED具体使用postman调用远程发现其实返回的是504 Gateway Time-out因为sit环境配置了nginx,所以查找发现修改nginx参数即可。在http{}片段下添加如下配置:单位秒proxy_connect_timeout 600;proxy_send_timeout 600;proxy_read_timeout 600;send_timeout 600;还是超时修改以下转载 2020-12-10 16:42:30 · 2975 阅读 · 0 评论