Quantcast
Channel: 运维与架构 » timeout
Browsing latest articles
Browse All 2 View Live

nginx+php-fpm出现502 bad gateway错误解决方法

502错误是所有用nginx跑php的运维人员不愿意看见的 nginx出现502有很多原因,但大部分原因可以归结为资源数量不够用,也就是说后端php-fpm处理有问题,nginx将正确的客户端请求发给了后端的php-fpm进程,但是因为php-fpm进程的问题导致不能正确解析php代码,最终返回给了客户端502错误。 服务器出现502的原因是连接超时 我们向服务器发送请求...

View Article



nginx 504 Gateway Time-out

记一次莫名其妙的网站失去响应排查。 之前网站一直是使用nginx做代理后端的apache运行php来提供服务。 apache经常会不定期不定时间的出现不能服务失去响应,然后nginx出现"504 Gateway Time-out" 查看错误日志也看不到任何东西,以为是apache的bug(其实不是,下面会说原因)。...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images