禁止core.xxx的文件一直在项目根目录生成
在/etc/profile添加如下命令行来禁止产生core文件:
#No core files by default
ulimit -S -c 0 > /dev/null 2>&1
执行生效 . /etc/profile
1.cat /etc/profile | grep “ulimit -c”,看下是否有打开core的配置,若有就vim打开配文件找到删掉它
2.执行 echo “ulimit -c 0” >>/etc/profile 添加禁用命令
3.chmod a+x /etc/profile
4.执行生效 . /etc/profile
Linux自动生成core.*文件
最新推荐文章于 2023-12-21 11:21:45 发布