Home  >  Q&A  >  body text

nginx - Many such files are generated in the web server root directory?

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

PHP中文网PHP中文网2714 days ago451

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:13:37

    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.

    reply
    0
  • Cancelreply