Linux下无法生成core文件的解决办法

1、检查ulimit

  

[root ~]# ulimit -c
0

  0:表示禁止生成core文件,此时需要执行ulimit -c unlimited(临时生效),或者在.bashrc中添加“ulimit -c unlimited”,然后source .bashrc

2、简称SELinux

  

[root ~]# getenforce
Enforcing

  此时需要关闭SELinux,执行setenforce 0(临时关闭),或者vim vim /etc/selinux/config,修改SELINUX=disabled

猜你喜欢

转载自www.cnblogs.com/lianshuiwuyi/p/9214560.html