Unable to load environment info from /solr/admin/info/system?wt=json
.
This interface requires that you activate the admin request handlers in all SolrCores by adding the following configuration to your solrconfig.xml
:
使用的是最新版本的solr 5.2.1 中,<requestHandler name="/admin/" class="solr.admin.AdminHandlers" />
配置不再支持。应该不需要再激活admin配置。
不应该是 Nginx的版本过低的问题吧
-----------------------------------------------------------------------------------------------------------------------------
很奇怪,问题已经解决了,是在配置nginx反向代理solr时 出的问题。
因为服务器上存在一个旧的solr,已在nginx上做了配置,现在追加新的solr 所以追加了如下的 配置:
location /jishi {
proxy_pass http://jishi/solr/;
proxy_set_header Host $host;
}
这么配置就会出现上述的问题,若是修改为如下配置就OK:
location /solr {
proxy_pass http://jishi /solr;
proxy_set_header Host $host;
}
感觉像是Nginx反向 Solr时 没找到主页。问题很奇怪,希望了解的朋友能在 留言区解惑。