准备使用curl_init访问外面的接口,在windows下用telnet测试正常,部署到Linux上后,出现报错
Fatal error: Call to undefined function curl_init() in /home/muyy/文档/GatewayWorker/Applications/YourApp/Event.php on line 41 WORKER EXIT UNEXPECTED E_ERROR Call to undefined function curl_init() in /home/muyy/文档/GatewayWorker/Applications/YourApp/Event.php on line 41 worker exit with status 65280
php的curl扩展也没问题,求大神告诉怎么解决?
应该是php cli没安装curl扩展
运行
php -m 看下是否加载了curl扩展,如果没有安装下
安装扩展参考手册:
http://doc3.workerman.net/appendices/install-extension.html