zoukankan      html  css  js  c++  java
  • Linux设置运行core dump

    系统配置
    vim /etc/sysctl.conf

    kernel.core_uses_pid = 1
    
    kernel.core_pattern = %e-core-%p-%t

    sysctl -p
    检查有没有生效
    cat /proc/sys/kernel/core_pattern

    命令行启动的,需要ulimit设置core dump文件大小限制:

    ulimit -c unlimited

    配置文件则是/etc/security/limits.conf

    #/etc/security/limits.conf
    *      soft      core      unlimited

    使用systemctl管理的应用,需要在service文件中打开core dump的限制:

    LimitCORE=infinity

  • 相关阅读:
    SPOJ
    基础计算几何
    数颜色
    Codeforces 986B
    一些有趣的题
    jQuery
    linux命令学习
    javaScript
    css
    html
  • 原文地址:https://www.cnblogs.com/glensblog/p/11039678.html
Copyright © 2011-2022 走看看