查看php-fpm配置文件,daemonize参数配置,将其设置为yes daemonize = yes 配置参数介绍: daemonize boolean 设置 FPM 在后台运行。设置“no”将 FPM 保持在前台运行用于调试。默认值:yes。