日光浴 - 卷曲错误 - 在php 7下使用solr

时间:2016-02-15 13:46:35

标签: curl solr centos php-7 solarium

我正在使用Solr 5.4,其用户界面运行正常。

我已安装Solarium来帮助开发我的用户界面。虽然,我在尝试使用示例代码时收到此错误:

 Fatal error: Uncaught Solarium\Exception\HttpException: Solr HTTP 
 error: HTTP request failed, Connection timed out after 5001 milliseconds in solarium/library/Solarium/Core/Client/Adapter/Curl.php:195 Stack trace: #0
 solarium/library/Solarium/Core/Client/Adapter/Curl.php(92): Solarium\Core\Client\Adapter\Curl->check('', Array, Resource id #37) #1 
 solarium/library/Solarium/Core/Client/Adapter/Curl.php(213): Solarium\Core\Client\Adapter\Curl->getResponse(Resource id #37, false) #2 
 solarium/library/Solarium/Core/Client/Adapter/Curl.php(68): Solarium\Core\Client\Adapter\Curl->getData(Object(Solarium\Core\Client\Request), Object(Solarium\Core\Client\Endpoint)) #3 
 solarium/library/Solarium/Core/Client/Client.php(804): Solarium\Core\Client\Adapter\Curl->execute(Object(Solarium\Core\Client\Request), Object(Solariu in solarium/library/Solarium/Core/Client/Adapter/Curl.php on line 195

我在运行php7的CentOS服务器下安装了php70w-common,它附带了php-curl,如webtatic.com所示。 Curl和Libcurl也已安装。

有没有人遇到同样的问题?

谢谢!

0 个答案:

没有答案