在zabbix_agentd上准备监控脚本#监控指标有
TIME_WAIT
CLOSE_WAIT
FIN_WAIT1
ESTABLISHED
SYN_RECV
LAST_ACK
LISTEN
[root@zabbix-client~]#cat/usr/local/zabbix/etc/tcp_connections.sh
#!/bin.bash
netstat-an|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘|grep$1|awk‘..
分类:
其他好文 时间:
2015-07-06 19:59:30
阅读次数:
266
在Servlet中输出验证码,可以在浏览器端通过参数控制生成的验证码图片宽度、高度和图片格式,如/random/code.do?width=120&height=30&format=png。
@WebServlet("/random/code.do")
public class RandomCodeServlet extends HttpServlet {
private static fin...
分类:
编程语言 时间:
2015-07-06 12:13:00
阅读次数:
138
client closes socket:
clientSocket.close();
step1 :client sends TCP FIN control segment to server
step2: Server receives FIN,replies with ACK. Closes connection,sends FIN.
time wait 30...
分类:
其他好文 时间:
2015-07-02 19:35:14
阅读次数:
112
TCP/IP有限状态机TCP初始化连接三次握手吧:发SYN包,然后返回SYN/ACK包,再发ACK包,连接正式建立。但是这里有点出入,当请求者收到SYS/ACK包后,就开始建立连接了,而被请求者第三次握手结束后才建立连接。关闭连接要四次握手:发FIN包,ACK包,FIN包,ACK包,四次握手!!一..
分类:
其他好文 时间:
2015-06-26 23:59:30
阅读次数:
628
作者:ssslinppp 1.准备这里我们采用Hibernate-validator来进行验证,Hibernate-validator实现了JSR-303验证框架支持注解风格的验证。首先我们要到http://hibernate.org/validator/下载需要的jar包,这里以4.3.1.Fin...
分类:
编程语言 时间:
2015-06-26 12:38:10
阅读次数:
225
ABBYY FineReader v12.0.101.264 中文破解版 破解步骤:
1.下载解压后,首先运行Setup目录中的AutoRun.exe程序进行安装原版程序。
2.以管理员模式运行Del_Lic_Serv.bat脚本删除后台服务程序。
3.复制压缩包中的CK目录下的所有文件到安装程序目录覆盖同名文件。
默认安装目录为:d:\Program Files\ABBYY Fin...
分类:
其他好文 时间:
2015-06-18 17:30:35
阅读次数:
2522
注意到随机一组贪心解得到的团的大小不小于$\frac{N}{3}$的概率是很大的,所以一直随机下去,直到找到一组解即可,随机次数是常数级别的,所以复杂度为$O(n^2)$。#include#include#define N 3010int n,m,i,j,k,a[N],del[N],fin[N];b...
分类:
其他好文 时间:
2015-06-17 00:31:29
阅读次数:
87
Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/xxx/tools/android/jdk1.7.0_71/bin/java'' fin...
分类:
移动开发 时间:
2015-06-16 16:48:51
阅读次数:
152
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai)
and (i, 0). Fin...
分类:
其他好文 时间:
2015-06-16 09:23:26
阅读次数:
138
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
其他好文 时间:
2015-06-09 13:53:19
阅读次数:
104