在 php-fpm.conf中的[www]下添加php_flag[display_errors] = On 重启php-fpm即可 /etc/init.d/php-fpm restart 转载于:https://www.cnblogs.com/liuyi2614/p/7363366.html