nginx開啓core dump文件

1.ulimit -c 10240
nginx

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/有寫的權限權限

相關文章
相關標籤/搜索