2

我正在使用 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 也已安装。

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

谢谢!

4

0 回答 0