centos core dump 设置

转自: http://blog.sina.com.cn/s/blog_7b6fc4c90100yn57.html

普通用户ssh连接linux服务器是总是提示:
ulimit: open files: cannot modify limit: Operation not permitted

解决办法:
vi /etc/security/limits.conf
添加:
* soft nofile 65535
* hard nofile 65535

优化内核时:
*       soft    nproc   65535
*          hard      nproc    65535

# End of file
*          -       core          unlimited
*          -       nofile        400000

vi /etc/profile

ulimit -c unlimited
ulimit -s unlimited

posted @ 2016-09-06 20:19  SandKing  阅读(10)  评论(0)    收藏  举报  来源