mac下使用php cURL方法nginx502错误

环境安装:brew命令

php版本:5.6

出现问题:使用curl方法,Nginx报错为502

分析原因:curl在安装的时候不支持 openssl

解决方法:

1、brew uninstall curl   // 卸载curl
2、brew install curl --with-openssl  // 重新安装curl
3、重启服务


你可能感兴趣的:(mac下使用php cURL方法nginx502错误)