摘要: 一,不同CPU内核绑定不同nginx进程 worker_processes 2; #修改 worker_cpu_affinity 0001 0010; #修改 worker_rlimit_nofile 65535; #修改 events { worker_connections 65535; #修改 阅读全文
posted @ 2022-04-13 21:17 gg888666 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1,查看当前系统每个ip的连接数? [root@Rocky ~]# netstat -ant|grep 'tcp\b'| tr -s " " ":"| cut -d":" -f4 |sort -nr|uniq -c 4 192.168.80.171 1 192.168.122.1 1 127.0.0 阅读全文
posted @ 2022-04-13 08:57 gg888666 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1,sync半连接和accept全连接队列 三次握手 server 端 SYN_RCVD状态到ESTABLISHED状态 之间是syns queue 队列 三次握手 server 端 ESTABLISHED状态到 还没被 accept() 系统调用取走 之间是 accept queue 队列 /pr 阅读全文
posted @ 2022-04-13 08:57 gg888666 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 三次握手 [root@Rocky ~]# ethtool ens33 Link detected: yes #端口正常 [root@Rocky ~]# rpm -ql netcat/usr/bin/nc ss -nutlp #查看tcp udp链接端口和进程对应关系 来自于iproute包,代替ne 阅读全文
posted @ 2022-04-13 08:56 gg888666 阅读(61) 评论(0) 推荐(0) 编辑