找到php.ini 如果是lnmp安装环境的话, php.ini 的位置在:/usr/local/php/etc/php.ini 将下值由Off 变更为 On display_errors = On 然后重启php-fpm 完美解决!