發(fā)現(xiàn)一個奇怪的問題蛋辈,nginx報錯:
*4012 upstream prematurely closed connection while reading response header from upstream
這樣的錯誤應(yīng)該是php-fpm存在問題记盒,在查看php-fpm的日志發(fā)現(xiàn)如下錯誤:
child 68372 exited on signal 15 (SIGTERM) after 587.884598 seconds from start
首先可以看下php-fpm配置文件中的一些連接數(shù)截汪,不過一般默認的都不會出錯,最后發(fā)現(xiàn)是php.ini里面的 display_errors設(shè)置了no導(dǎo)致的問題翘单。 最后打開錯誤提示解決問題噪叙。