在安装完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

版权声明:本文为博主原创文章,转载请附上博文链接!

--------------------- 

最新文章

  1. @Column
  2. ORACLE导入导出数据dmp
  3. android 发送短信功能
  4. atitit。ocr框架类库大全 attilax总结
  5. Access时间日期比较查询的方法总结
  6. HDU 5430 Reflect
  7. [itint5]判断是否为二叉搜索树
  8. asp.net跨域上传文件
  9. Asterisk 未来之路3.0_0007
  10. linux 文件和目录操作
  11. iOS 制作自动打包脚本 Xcode8.3.2
  12. C#ComboBox绑定List
  13. spring springMvc spring-boot spring-cloud分别是什么
  14. AVL平衡二叉树实现
  15. centos7升级Python2.x到3.x
  16. PAT 1009 说反话
  17. Linux命令之rmdir
  18. model.addattribute()的作用
  19. Yii Restful api认证
  20. nginx 哈希表数据结构

热门文章

  1. 用composer安装php代码(以安装phpmailer为例)
  2. Appium+python自动化(十)- 元素定位秘籍助你打通任督二脉 - 上卷(超详解)
  3. Unity Shader 玻璃效果
  4. SQL Server 2012完全备份、差异备份、事务日志备份和还原操作;
  5. vue项目实现表格导出excel表格
  6. bitmap-如何判断某个整数是否存在40亿个整数中?
  7. 关于火狐浏览器设置cookie的一个问题
  8. Android 蓝牙开发(2)——低功耗蓝牙
  9. python 实现一个计算器功能
  10. Java面试总结(一)