Apache Solr实现 - 无法访问管理页面 [英] Apache Solr - Unable to access admin page

查看:3275
本文介绍了Apache Solr实现 - 无法访问管理页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac雪豹,我使用BREW已经安装Apache Solr实现4.2.0,并使用下面的命令触发服务器,

On mac snow leopard, I have installed Apache Solr 4.2.0 using brew and triggered the server using the below commands,

Usage: $ solr path/to/config/dir

当我尝试使用访问管理页面中浏览器下面的链接和页面SolrCore初始化失败发生如下,

When I try to access the admin page in browser using below link and the page with SolrCore Initialization failure occurs as below,

http://localhost:8983/solr/admin

collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load config for solrconfig.xml 

该页面也有消息,

The page also has message,

There are no SolrCores running.
Using the Solr Admin UI currently requires at least one SolrCore.

对此任何帮助是极大的AP preciated。

Any help regarding this is greatly appreciated.

推荐答案

在根Solr的config目录下,有一个名为 solr.xml 。该文件配置Solr的核心。该文件可能包含:

In the root for the Solr config directory, there is a file called solr.xml. This file configures Solr cores. The file might contain:

  <cores adminPath="/admin/cores" host="${host:}" hostPort="${jetty.port:}" hostContext="${hostContext:}" zkClientTimeout="${zkClientTimeout:15000}">
    <core default="true" name="auction" instanceDir="auctionConfigDir" />
  </cores>

重要的一点是要匹配 INSTANCEDIR =auctionConfigDir实际路径/到/配置/ DIR 。如果Solr的找不到您的配置文件的位置,它不会是能够启动一个核心。

The important point is to match instanceDir="auctionConfigDir" with the actual path/to/config/dir. If Solr can't find the location of you configuration files, it wont be able to start a core.

这篇关于Apache Solr实现 - 无法访问管理页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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