针对我遇到的curl_exec返回int(77)的处理过程。
1、执行代码确认证书
# sudo yum install ca-certificates
2、关闭与重启php-fpm
# ps aux | grep -c php-fpm
# kill -INT `cat /usr/local/php/var/run/php-fpm.pid`
# service nginx restart
# service php-fpm restart
3、 curl时设置:curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0)
1、执行代码确认证书
# sudo yum install ca-certificates
2、关闭与重启php-fpm
# ps aux | grep -c php-fpm
# kill -INT `cat /usr/local/php/var/run/php-fpm.pid`
# service nginx restart
# service php-fpm restart
3、 curl时设置:curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0)
2016-06-13