Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 httpd.conf 中添加了 CoreDumpDirectory /tmp
mkdir /tmp chown apache:apache /tmp chmod 0777 /tmp ulimit -c unlimited service httpd restart
但是core.*发生段错误时没有生成转储文件,有什么建议吗?
core.*
我的系统是CentOS6.2 x64(虚拟机)
检查您的/etc/security/limits.conf文件并查看此行是否设置为 0:
/etc/security/limits.conf
* hard core 0
从本质上讲,任何第三个词是的东西,core看看第一个词是否是*或apache相关的。您可以通过在行首添加 a 来注释掉该#行。然后运行:
core
*
apache
#
sysctl -p