linux 多并发 连接限制修改
2024-10-08 08:57:17
1. 修改
ulimit -a 查看 open files 表示单个用户能打开的最大句柄 如果开发的高并发当个进程打开的句柄需要很大。
修改/etc/security/limits.conf
里面有很详细的注释,比如
* soft nofile 32768
* hard nofile 32768
*代表对所有用户有效。
2. 重启电脑
3. ulimit -a 再次查看 open files 已经修改成功。
参考:
https://blog.csdn.net/libaineu2004/article/details/72822449
https://zhidao.baidu.com/question/2270976874150863028.html
最新文章
- VBA初试——合并
- cursor or set-based
- 浅谈Java 8的函数式编程
- hangfire+bootstrap ace 模板实现后台任务管理平台
- zjuoj 3602 Count the Trees
- MFC获取系统当前时间的几种方法
- [Js]缓冲运动
- 【转】Objective-C代码注释和文档输出的工具和方法
- css清除浮动的几种方法整理
- (转载)小课堂UI-Star Diamond Tutorial
- Python进阶之路---1.1python简介
- MSSQL、C# 、Winform、ASP.NET - 数据库备份与还原模块
- 减少HTTP请求之合并图片详解(大型网站优化技术)
- C语言两个libxml2库使用的问题
- HtmlTestRunner无法生成HTML报告问题
- linux_rsync定时备份
- python_code list_2
- C#解压文件,Excel操作
- Module(CP343-1)Advanced system error SDB generation Error in rule file or rule file not found
- python3 进行字符串、日期、时间、时间戳相关转换