[转帖]TIME_WAIT和CLOSE_WAIT的区别

系统上线之后,通过如下语句查看服务器时,发现有不少TIME_WAIT和CLOSE_WAIT。 netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' TIME_WAIT 297 ESTABLISHED 53 CLOSE

[转帖]nginx proxy_pass keepalive

Syntax: keepalive connections; Default: — Context: upstream This directive appeared in version 1.1.4. Activates the cache for connections to upstream

Nginx的Keepalive的简单学习

摘要 最近发现某项目的Nginx负载服务器上面有很多Time_wait的TCP连接 可以使用命令 netstat -n |awk '/^tcp/ {++S[$NF]} END{for (a in S) print a , S[a]}' 当时反馈过来 time_wait的连接特别多. 我比较菜, 没有

[转帖]bcc入门

学习bcc已经有一段时间,稍微总结一下已知的一些内容。 1. 安装bcc bcc/INSTALL.md at master · iovisor/bcc · GitHubBCC - Tools for BPF-based Linux IO analysis, networking, monitorin

[转帖]抖音2023最火英文短句

1.I really like being alone, and I'm really afraid of being alone. 我真的喜欢独处,也真的害怕孤独。 2.The city is full of flowers and 3000 lights for you. 为你花开满城,为你灯明

[转帖]CC是什么?EAL又是什么?如何进行CC认证实施?

https://zhuanlan.zhihu.com/p/461352179 一、信息安全通用标准CC是什么? http://1.CC是什么? CC:Common Criteria for Information Technology Security Evaluation 信息技术安全性评估准则。

[转帖]awk(三) 列运算

https://www.jianshu.com/p/b46f783832e3 1. 求每一行中指定列的最大/小值 awk '{m=0;for(x=5;x<=NF;x++)if($x>m) {m=$x};print m}' input.file # 求第5列到最后一列中每行的最大值 awk '{m=0

[转帖]awk(二) 输出/删除指定列

https://www.jianshu.com/p/d26356ffccd7 1. 输出每行的前5列,并按行输出 awk '{for(i=1;i<6;i++)printf("%s ",$i);printf("\n")}' input.file 2. 输出多列,并更改分隔符为TAB awk '{for

[转帖]VMware NVMe支持:vSphere 7.0 U3及未来展望

https://aijishu.com/a/1060000000256123 本文内容参考自《SNIA SDC 2021会议资料& 分享的心路历程》中的一个Slide,《NVMe/TCP in the Enterprise:Next-Gen End-to-End Paradigm for Stora

[转帖]Nginx代理获取后端用户真实IP

https://www.cnblogs.com/paul8339/p/15740137.html nginx代理后想获取用户的真实IP, 1.在http 模块内增加map模块参数: map $http_x_forwarded_for $clientRealIp { "" $remote_addr;

[转帖]eBPF阅读笔记

https://zhuanlan.zhihu.com/p/264922917 eBPF指令集 eBPF是位于内核的一个解释器, 实现了自己的RISC指令集. 寄存器 * R0 - return value from in-kernel function, and exit value for eBP

OpenSSH 9.2P1升级以及版本显示的处理过程

说明 本次维护的时间是 2023-2-9 最新已发布的补丁是 OpenSSH9.2P1版本 其他本本应该是类似处理. 下载介质 在 OpenSSH官网打开相关界面. http://www.openssh.com/ 打开 For Other systems 打开release界面.比如我这边使用这个m

[转帖]numactl工具使用

https://www.jianshu.com/p/074c43e1f9c6 安装 $yum install -y numactl 命令:numstat [root@localhost ~]# numastat node0 numa_hit 30772351 numa_miss 0 numa_for

[转帖]find排除一个或多个目录的方法

find排除一个或多个目录的方法 百度就是垃圾,搜索结果千篇一律,错抄错。google一下,总结find排除某个目录的方法: How to exclude a directory in find . command Use the -prune switch. For example, if you

[转帖]shell 实现行转列、列转行的几种方法

目录 shell 实现行转列、列转行的几种方法awk行转列 xargs行转列 tr列转行参考资料 shell 实现行转列、列转行的几种方法 awk 行转列 以空格为分隔符 awk -F "+" '{for(i=1;i<=NF;i++) a[i,NR]=$i}END{for(i=1;i<=NF;i++

[转帖]精通awk系列(19):awk流程控制之break、continue、next、nextfile、exit语句

https://www.cnblogs.com/f-ck-need-u/ 回到: Linux系列文章 Shell系列文章 Awk系列文章 break和continue break可退出for、while、do...while、switch语句。 continue可让for、while、do...wh

overcommit_memory的简单学习

overcommit_memory的简单学习 背景 前几天一个测试环境启动失败. 总是有如下的提示: Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory. 当时看free 其

正则表达式学习

第一个: 过滤guid相关的信息 egrep ^[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}$ 第二个: 反编译代码 time for i in `find . \( -path ./var -

【转帖】ethool工具之TSO、UFO、GSO、LRO、GRO和RSS介绍

ethtool -k < 网络接口>, ethtool --show-offload < 网络接口>, 或者可以看到很多网络接口的offload特性,例如: $ sudo ethtool -k eth0Offload parameters for eth0:rx-checksumming: ontx

[转帖]【Python】计算程序运行时间的方法总结

一、第一种方法 利用time包: import time def test(): start_time = time.time() # 记录程序开始运行时间 s = 0 for i in range(1000000): s += 1 end_time = time.time() # 记录程序结束运行