core文件的产生

    技术2025-03-03  45

    查看core文件产生的条件限制  ulimit -a

     

    1. 在当前的shell窗口下设置产生core文件的条件

    ulimit -c unlimited 

    或 ulimit -c 1024

     

    2. 设置当前的账户产生core文件

    在特定的用户环境下打开core文件产生的设置

    在用户的~/.bash_profile里加上ulimit -c unlimited来让特定的用户可以产生core文件

     

    3. 为所有用户设置产生core文件条件

             在/etc/profile文件中最后加上一行设置条件  ulimit -c unlimited 

     

     

     

    参考 http://longmans1985.blog.163.com/blog/static/70605475200910244184216/>

    最新回复(0)