码迷,mamicode.com
首页 >  
搜索关键字:$nf    ( 653个结果
服务器性能调优(netstat监控大量ESTABLISHED连接与Time_Wait连接问题)
netstat监控大量ESTABLISHED连接与Time_Wait连接问题 问题描述: 在不考虑系统负载、CPU、内存等情况下,netstat监控大量ESTABLISHED连接与Time_Wait连接。 # netstat -n | awk '/^tcp/ {++y[$NF]} END {for( ...
分类:Web程序   时间:2019-01-30 16:01:24    阅读次数:197
shell脚本中常用的命令
find /home/ -maxdepth 1 -type d ! -name "home"|awk -F"/" '{print $NF}' 不显示指定目录名find /home/ -maxdepth 1 -type d ! -name "home" -o -name "test2folder"|a ...
分类:系统相关   时间:2019-01-30 01:23:53    阅读次数:231
1加到100计算
awk‘BEGIN{sum=0;i=0;while(i<=100){sum+=i;i++};{printsum}}‘awk‘BEGIN{sum=0;for(i=0;i<=100;i++){sum+=i};printsum}‘#awk-F:‘/root/{i=1;while(i<=NF){print$i,length($i);i++}}
分类:其他好文   时间:2019-01-22 20:46:04    阅读次数:212
ingress及Ingress Controller
补充 启用ipvs代替iptables做service 注意:需要装入ip_vs, ip_vs_rr, ip_vs_wrr, ip_vs_sh, nf_conntrack_ipv4等模块 一、Ingress Controller 可选择的ingress controller: Nginx Envoy ...
分类:其他好文   时间:2019-01-21 00:00:42    阅读次数:591
用户层APC队列使用
一 参考 https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-queueuserapc <<windows核心编程>> 第5版 二 每个线程都有一个APC队列, 在线程 ...
分类:其他好文   时间:2019-01-18 12:21:05    阅读次数:153
监控系统状态2
查看网络状态netstat查看网络状态netstat-lnp查看监听端口netstat-an查看系统的网络连接状况netstat-lntp只看出tcp的,不包含socketss-an和nestat异曲同工自行查看TCP三次握手四次挥手的过程分享一个小技巧:查看所有状态的数字统计:netstat-an|awk‘/^tcp/{++sta[$NF]}END{for(keyinsta)printk
分类:其他好文   时间:2019-01-09 11:22:42    阅读次数:200
awk mysql
mysqlbinlog --no-defaults --base64-output=decode-rows -v -v mysql-bin.000002 |awk '/###/{if($0~/UPDATE|INSERT|DELETE/)count[$2" "$NF]++}END{for(i in c ...
分类:数据库   时间:2019-01-04 16:15:02    阅读次数:212
Probabilistic Graphical Models 10-708, Spring 2017
https://www.cs.cmu.edu/~epxing/Class/10708-17/slides/lecture1-Introduction.pdf Computational and CS orientated => DK and NF's book Statistical and eas ...
分类:编程语言   时间:2019-01-04 10:36:23    阅读次数:226
bzoj3453: tyvj 1858 XLkxc(拉格朗日插值)
"传送门" $f(n)=\sum_{i=1}^ni^k$,这是自然数幂次和,是一个以$n$为自变量的$k+1$次多项式 $g(n)=\sum_{i=1}^nf(i)$,因为这东西差分之后是$f$,所以这是一个$k+2$次多项式 同理最后我们要求的也是一个$k+3$次多项式 $f,g$暴力计算,然后把 ...
分类:其他好文   时间:2019-01-03 22:41:55    阅读次数:234
netstat查看tcp连接的状态
netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}' ...
分类:Web程序   时间:2019-01-02 13:35:19    阅读次数:193
653条   上一页 1 ... 10 11 12 13 14 ... 66 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!