09 2012 档案

摘要:先说明平滑的含义,就是服务不中断。。http://wiki.nginx.org/CommandLinenginx的几种信号 The master process can handle the following signals:TERM, INTQuick shutdownQUITGraceful shutdownKILLHalts a stubborn processHUPConfiguration reloadStart the new worker processes with a new configurationGracefully shutdown the old worker . 阅读全文
posted @ 2012-09-29 09:28 过去的我 阅读(266) 评论(0) 推荐(0) 编辑
摘要:服务器大量连接,大概2w,不正常的,平时稳定在3,4千而已 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' LAST_ACK 6SYN_RECV 574ESTABLISHED 46FIN_WAIT1 1451F 阅读全文
posted @ 2012-09-27 18:17 过去的我 阅读(229) 评论(0) 推荐(0) 编辑
摘要:有两种方法,一种正对user agent ,httpuseragentlimitconnlimitzoneonebinary_remote_addr 10m;写作http 中limit_conn one 5;写在 server 的location中,需要指出的是两者不能并用,返回403了就不会记ip了,这一点我纠结了很久,大概2小时样子,至少我在1.0.4 版本中是这样的limit conn 模块限定了以后,超了就好503,但好像返回的字节是206,403的话可以更少一点.不过limit 的好处是,对方伪装了user agent 以后进行 阅读全文
posted @ 2012-09-26 23:16 过去的我 阅读(492) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示