I don’t know why, nginx will generate many such files in the web root directory. Does anyone know?
认证0级讲师
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.
ulimit -a | grep 'core file'
ulimit -c 0
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.
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
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.