FD limit (65535) too low for maxconn=65535/maxsock=131084.Please raise 'ulimit-n' to 131084 or more to avoid any trouble.
2024-09-01 03:49:46
在安装完Haproxy启动时报错,诸如:FD limit (65535) too low for maxconn=65535/maxsock=131084.Please raise 'ulimit-n' to 131084 or more to avoid any trouble.遇到此类问题,搜了其他微博的文章,都是修改ulimit -n 65535 之类的。
照网上一些博客说的,有以下方法修改FD值:
1.在/etc/rc.local 中增加一行 ulimit -SHn 65535
2.在/etc/profile 中增加一行 ulimit -SHn 65535
3.在/etc/security/limits.conf
如果在修改完之后依然解决不了。那么:
vim /haproxy/conf/haproxy.cfg
修改所有其中的maxconn 4096配置,在实验情况下可以将其改的小一些。
作者:xiaomabrother
版权声明:本文为博主原创文章,转载请附上博文链接!
---------------------
最新文章
- @Column
- ORACLE导入导出数据dmp
- android 发送短信功能
- atitit。ocr框架类库大全 attilax总结
- Access时间日期比较查询的方法总结
- HDU 5430 Reflect
- [itint5]判断是否为二叉搜索树
- asp.net跨域上传文件
- Asterisk 未来之路3.0_0007
- linux 文件和目录操作
- iOS 制作自动打包脚本 Xcode8.3.2
- C#ComboBox绑定List
- spring springMvc spring-boot spring-cloud分别是什么
- AVL平衡二叉树实现
- centos7升级Python2.x到3.x
- PAT 1009 说反话
- Linux命令之rmdir
- model.addattribute()的作用
- Yii Restful api认证
- nginx 哈希表数据结构