Home  >  Article  >  Backend Development  >  curl-get - php curl 502 Bad Gateway

curl-get - php curl 502 Bad Gateway

WBOY
WBOYOriginal
2016-06-06 20:17:481922browse

php curl 502 Bad Gateway最可能的原因?如何处理呢?

回复内容:

php curl 502 Bad Gateway最可能的原因?如何处理呢?

正常访问有没有问题?

php-fpm 超时,看看php的慢日志。
看看这篇文章,分析502与504的区别的

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
在http节点中加入这三行,能解决502的问题

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn