带有Solr 4.4的Jetty 6.1

编程入门 行业动态 更新时间:2024-10-24 10:22:48
本文介绍了带有Solr 4.4的Jetty 6.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以从Ubuntus软件包系统信息库中使用Jetty 6.1运行Solr 4.4?我遵循以下示例: www.kingstonlabs/博客/how-to-install-solr-36-on-ubuntu-1204/ 并尝试了其他一些示例,但似乎无法从Jetty的webapps目录中运行run Solr 4.4.

Is it possible to run Solr 4.4 with jetty 6.1 from Ubuntus package repository? I followed this example: www.kingstonlabs/blog/how-to-install-solr-36-on-ubuntu-1204/ And tried some other examples, but it seemed to be impossible to run run Solr 4.4 from Jetty's webapps directory.

在该示例中,您可以读到注释,人们尝试到达时最终得到404

In the example you can read in the comments, that people ended up with 404 when try to reach

localhost:8080/solr

我还尝试了Rafal Kuc撰写的Apache Solr 4 Cookbook中的配置步骤,第6页在Jetty上运行Solr"

I tried also the configuration steps from the Apache Solr 4 Cookbook by Rafal Kuc, page 6 "Running Solr on Jetty"

以下是这些步骤的摘要:

Here a summary of the steps:

tar xvfz solr-4.4.0.tgz sudo cp ~/solr-4.4.0/example/webapps/solr.war /usr/share/jetty/webapps sudo mkdir /usr/share/jetty/temp sudo cp ~/solr-4.4.0/example/contexts/solr-jetty-context.xml /usr/share/jetty/contexts #Change temp dir sudo vi /usr/share/jetty/contexts/solr-jetty-context.xml sudo cp ~/solr-4.4.0/example/etc/jetty.xml /usr/share/jetty/etc/ sudo cp ~/solr-4.4.0/example/etc/webdefault.xml /usr/share/jetty/etc/ sudo cp ~/solr-4.4.0/example/etc/logging.properties /usr/share/jetty/etc/ sudo mkdir /usr/share/solr sudo cp ~/solr-4.4.0/example/solr/solr.xml /usr/share/solr/ sudo mkdir -p /usr/share/solr/collection1/conf sudo cp ~/solr-4.4.0/example/solr/collection1/conf/schema.xml /usr/share/solr/collection1/conf/ sudo cp ~/solr-4.4.0/example/solr/collection1/conf/solrconfig.xml /usr/share/solr/collection1/conf/ # JETTY_HOME = 0.0.0.0; NO_START=0; # JAVA_OPTIONS="-Xmx256m -Djava.awt.headless=true -Dsolr.solr.home=/usr/share/solr/" sudo vi /etc/default/jetty

但是

localhost:8983/solr

之后无法访问

.如果在日志中发现一些错误消息,并且我认为替换了Jetty 6.1的Solr 4.4.0文件中的jetty.xml不能与其余的jetty 6.1一起使用 我记得关于Java/Jetty Server类的日志中的问题.我觉得很不一样.

is not reachable afterwards. If found some error messages in the logs and i think that the jetty.xml from the Solr 4.4.0 files which substituting the Jetty 6.1 jetty.xml does not work with the rest of jetty 6.1 I remember so issues in the logs about Java/Jetty Server classes. i think tey differ.

任何有这种情况的经验的人都可以肯定地证实我的猜测吗?

Anybody with experiences in this case an can surely confirm my guess?

推荐答案

提示是将solr示例目录example/lib/ext中的库集成到solr.war中.

The clue is to integrate the libs from the solr example directory example/lib/ext into the solr.war.

从solr.war中提取文件.然后将库放入WEB-INF/lib文件夹中. 使用包含的库创建一个新的solr.war.

Extract the files from the solr.war. Then put the libs into the WEB-INF/lib folder. Create a new solr.war with the libs included.

更多推荐

带有Solr 4.4的Jetty 6.1

本文发布于:2023-11-28 15:40:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642995.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Solr   Jetty

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!