- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
查看tcp连接数(Check the TCP connection number)
查看tcp连接数(Check the TCP connection number)
Check the number of TCP connections in Linux
See which IP connections are connected to the machine
Netstat -an
Check the number of TCP connections
1) statistics 80 port connections
Netstat - NAT | grep - I 80 | wc - l
2) statistics HTTPD protocol connection number
Ps - ef | grep HTTPD | wc -l
3) the state is established
Netstat na | grep ESTABLISHED | wc -l
4) find out which IP address is the most connected, and seal it.
Netstat - na | grep ESTABLISHED | awk {print $5} | awk - F: {print $1} | sort | sort - c | sort - r + 0n
Netstat - na | grep SYN | awk {print $5} | awk - F: {print $1} | sort | sort - c | sort - r + 0n
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
1. Check the current concurrent access number of apache:
Netstat - an | grep ESTABLISHED | wc - l
Compare the number of MaxClients in httpd.conf.
2. Check the number of processes:
Ps aux | grep HTTPD | wc -l
3. You can view the data using the following parameters
Server - the status? auto
# ps - ef | grep HTTPD | wc -l
1388
Count the number of HTTPD processes, and even a request will start a process, using the Apache server.
It says that Apache can handle 1388 concurrent requests, which Apache can adjust automatically depending on the load.
# netstat - NAT | grep - I 80 | wc - l
4341
Netstat - an will print the current network link status of the system, while grep-i 80 is used to extract the connection to port 80, and wc - l makes the connection count.
The final number returned is the total number of requests for all 80 ports.
# netstat - na | grep ESTABLISHED | wc -l
376
Netstat -an will print the current network link state, while grep ESTABLISHED extracts the information that has been ESTABLISHED. Then wc - l statistics.
The final num
您可能关注的文档
- CAD试卷(CAD test paper).doc
- CBD概述(An overview of the CBD).doc
- CAN自收发程序(CAN self-transceiver program).doc
- CDN架构及原理(CDN architecture and principles).doc
- CO2蓄积(The accumulation of CO2).doc
- cisco设备开启SSH2远程登陆(Cisco equipment opens SSH2 remote login).doc
- config.pro.2015.02.27(config.pro.2015.02.27).doc
- CPU 速度对比(CPU speed comparison).doc
- CoreIDRAW12快捷键一览表(CoreIDRAW12 shortcut key list).doc
- coredrawl快捷键(Coredrawl shortcuts).doc
- 标准跑道尺寸(Standard runway size).doc
- 标准图集名称(Standard atlas name).doc
- 标杆模板自菜单音(The post template from the menu sound).doc
- 案例分析汇编(Case analysis compilation).doc
- 案例说血管瘤的症状及治疗方法(The case studies the symptoms and treatment of hemangioma).doc
- 步步高I518(Backgammon I518).doc
- 比较完整的牧师史诗级任务攻略(The more complete priest epic task attack).doc
- 比较正宗的陷阱刺客(More authentic trap assassins).doc
- 氨基糖甙类(aminophenoside).doc
- 毕业实习日记(Graduation internship diary).doc
最近下载
- 医院信息网络安全培训PPT课件.pptx
- 2025年前列腺科普试题及答案.docx
- 立式叶片排渣过滤机-中国化工设备网.doc
- 20250508 北京大学DeepSeek系列06:DeepSeek私有化部署和一体机.pptx VIP
- 【7上英YL】芜湖市2024-2025学年七年级上学期期中考试英语试卷.pdf VIP
- 屋面瓦及檩条拆除安全方案.doc
- Schneider Electric施耐德Easy Altivar ATV610 变频器编程手册(中文).pdf VIP
- NB∕T34024-2024生物质成型燃料质量要求及分级.docx VIP
- STM32F1开发标准教程-教学大纲、授课计划.docx
- 新语境幼儿园教师专业能力等级与评定.pdf VIP
文档评论(0)