HttpException:Solr HTTP 错误:HTTP 请求失败,无法连接到 127.0.0.1 端口 8983:连接被拒绝 [英] HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused

查看:53
本文介绍了HttpException:Solr HTTP 错误:HTTP 请求失败,无法连接到 127.0.0.1 端口 8983:连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 symfony2 中配置 NelmioSolariumBundle,但出现此错误:

I try to configure NelmioSolariumBundle in symfony2 but i have this error:

HttpException: Solr HTTP error: HTTP request failed, Failed to connect to 127.0.0.1 port 8983: Connection refused

我在文件 config.yml 中添加了这一部分:

I added this section in the file config.yml :

nelmio_solarium:
    endpoints:
        default:
            host: %solr_host%
            port: %solr_port%
            path: %solr_path%
            core: %solr_core%
            timeout: %solr_timeout%
    clients:
        default:
            endpoints: [default]

在parametre.yml中:

and this in parametre.yml:

solr_host: 127.0.0.1
    solr_port: 8983
    solr_path: /solr/
    solr_core: allTest
    solr_timeout: 5

推荐答案

显然,您的 Solr 服务器已关闭.如果启动失败,请检查 Solr 日志.

Apparently, your Solr server is down. Please check the Solr logs if the startup has failed.

tail -n 200 /tmp/solr.log # or wherever Solr writes its logs

如果您的 schema.xml、solrconfig.xml 中有错误,或者应该包含不存在的文件时,就会发生这种情况.

This can happen if you have an error in your schema.xml, your solrconfig.xml, or when a file should be included which doesn't exist.

这篇关于HttpException:Solr HTTP 错误:HTTP 请求失败,无法连接到 127.0.0.1 端口 8983:连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆