开发者社区> 问答> 正文

nginx+fpm使用curl或者file_get_contents请求http?报错

nginx+fpm使用curl或者file_get_contents请求https网站时502? 400 报错

请求http的网址都正常,而如果是请求https的网址则nginx日志报connect reset by peer,看fpm日志是

Jul 03 00:37:37.619903 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD 
Jul 03 00:37:37.619926 [WARNING] fpm_children_bury(), line 215: child 3567 (pool default) exited on signal 11 SIGSEGV (core dumped) after 417.576755 seconds from start 
Jul 03 00:37:37.620807 [NOTICE] fpm_children_make(), line 352: child 4193 (pool default) started 

php编译的选项如下

'./configure' '--prefix=/www/nginx_php-5.2.17' '--with-config-file-path=/www/nginx_php-5.2.17/etc' '--with-mysql=/www/mysql' '--with-iconv=/usr' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-discard-path' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-ftp' '--enable-sockets' '--enable-zip' '--enable-fastcgi' '--enable-fpm' '--with-fpm-conf=/www/etc/php-fpm.conf'


没找到啥有价值的东西,快被折腾死了

展开
收起
优选2 2020-06-09 10:59:11 761 0
1 条回答
写回答
取消 提交回答
  • 编译curl的时候带openssl了么######带了######自己顶下……求解决……######兄弟,这个问题解决没?我也要被搞死了,希望借点经验!######如果你用的是wdcp的话,把mysql换个版本就行了

    2020-06-09 10:59:28
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载