是否可以从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
发布评论