nginx+php-fpm 502 bad gateway
生活随笔
收集整理的这篇文章主要介绍了
nginx+php-fpm 502 bad gateway
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
输出日志配置:
http://blog.csdn.net/wzy_1988/article/details/8486888
解决方案:
http://www.cnblogs.com/jackluo/p/3366612.html
http://leezqang.blog.51cto.com/1525874/1365140
有关file_get_contents引起的502解决方案:
http://www.111cn.net/phper/php-function/55873.htm
http://www.qetee.com/share/php-fpm-cpu100.html
参考
http://yige.org/p/867
使用自己封装的file_get_content函数代替系统自带的file_get_contents
function _file_get_content($str) { $ctx = stream_context_create(array( 'http' => array( 'timeout' => 10 //设置一个超时时间,单位为秒 ) ) ); return file_get_contents($str, 0, $ctx); }
转载于:https://www.cnblogs.com/walter371/p/4161646.html
总结
以上是生活随笔为你收集整理的nginx+php-fpm 502 bad gateway的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 要死了一样
- 下一篇: PHP读取大文件的几种方法