本文章來給大家介紹在使用nginx報錯 "readv() failed (104: Connection reset by peer)" 錯誤的解決辦法。
錯誤提示
[error] readv() failed (104: Connection reset by peer) while reading upstream, client: x.x.x.x, server: host.tld, request: "POST /script.php, ...
解決辦法
php-fpm.conf中將這個參數的值設定為600:
request_terminate_timeout = 600