nginx - Many such files are generated in the web server root directory?
PHP中文网
PHP中文网 2017-05-16 17:11:37
0
1
499

I don’t know why, nginx will generate many such files in the web root directory. Does anyone know?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

The core file is used for debugging. If you don’t want to generate a core dump file, check these:

Execute ulimit -a | grep 'core file'看看是否为0,如果不为0,代表你打开了调试,可以使用ulimit -c 0 first to close it.

If it is 0, check the nginx.conf configuration file to see if there is this configuration item in it

working_directory  /;
worker_rlimit_core 500M;

If it exists, you can set worker_rlimit_core to 0 and restart the nginx service.

The original core dump file can be deleted if you don’t want it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template