摘要:
input { file { type=> “nginx-acc” path=> ["acclogpath"] } file { type=> “nginx-error” path=> ["errorlogpath"] } } filter { if [type] == "nginx-acc" { 阅读全文
posted @ 2020-09-03 20:27
winss
阅读(187)
评论(0)
推荐(0)
摘要:
如果IP在指定列表中,则转到不同的upstream 这样可以做到灰度,分地区等功能 阅读全文
posted @ 2020-09-03 20:09
winss
阅读(262)
评论(0)
推荐(0)
摘要:
安装 lua wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz tar -zxvf LuaJIT-2.0.5.tar.gz cd LuaJIT-2.0.5 make && make install PREFIX=/usr/local/LuaJIT 阅读全文
posted @ 2020-09-03 20:03
winss
阅读(3829)
评论(0)
推荐(0)
摘要:
根据业务要求,定时在凌晨1点把首页A重定向到B 1点之后 直接访问A首页,转B--正确 直接访问B 即是B,不跳转--正确 0-1点 直接访问A首页,即是A 不跳转--正确 直接访问B 跳转A--不正确 经过多次排查,NGINX没有做B跳转A首页的动作 但是有一种情况是找不到页面会跳首页,但是B确实 阅读全文
posted @ 2020-09-03 19:45
winss
阅读(150)
评论(0)
推荐(0)
摘要:
今天生产反馈上周执行的sql没有生效,怀疑没有执行。 执行语句: update t2 set a=2 and b=3; 语法检查没有提示错误,但是执行结果没有达到预期 正确: update t2 set a=2 , b=3; 阅读全文
posted @ 2020-09-03 19:37
winss
阅读(365)
评论(0)
推荐(0)
摘要:
nginx: upstream.conf upstream varnish_test{ server 10.11.22.21:8888; server 10.11.22.22:8888; keepalive 2000; ) conf location @varnish-cache{ proxy_se 阅读全文
posted @ 2020-09-03 19:23
winss
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号