1.ulimit -c 10240nginx
2.在/etc/profile寫入 ulimit -S -c unlimited > /dev/null 2>&1ide
在/etc/sysctl.conf添加core文件生成路徑ui
kernel.core_pattern = /tmp/corefile/core.%e.%tit
fs.suid_dumpable=2class
sysctl -p 生效file
確保nginx對/tmp/corefile/有寫的權限權限