gpt4 book ai didi

apache - 在 tomcat 上运行 Solr

转载 作者:行者123 更新时间:2023-11-28 22:11:18 25 4
gpt4 key购买 nike

是否可以在 tomcat 上运行 Solr 6.4.1?我读到 Solr 不再支持 tomcat,是真的吗?如果是,还有没有其他没有 tomcat 的选项吗?

最佳答案

是的,任何版本的 Solr 从 5 开始都不正式支持 Tomcat 作为替代品。

这样做的原因有 been documented on the wiki :

Solr is intended to be a server not a Java web application, similar to mysql or the Apache web server. When Solr was first created, designing it as a web application was a convenient choice, to avoid writing a lot of tricky code to build a network layer. These days, this design decision has become a limiting factor.

When you download Solr and install it onto your machine, it should be Solr that gets started. It should not be necessary to install Solr into a third-party application (servlet container) before it will work.

At this time, Solr is still a webapp, but this is an internal implementation detail, not an immutable property. The intention is to make Solr into a completely standalone application. Startup scripts that start the included container are the first step towards that goal. Jetty might still be the technology used once Solr is a standalone application, but if that happens, it will be internally embedded.

目前您仍然可以尝试在不同的容器中运行 Solr,因为当前版本捆绑了 jetty 并将 Solr 加载到 jetty 中,但是您可能会遇到无法解释的问题,您总是怀疑容器是问题所在。 .如果您遇到问题,在 Tomcat 下运行时报告错误不会有任何好处。

来自 one of the comments on the old tomcat page on the community wiki :

If you want to go against recommendations and run 5.3 or later in Tomcat, you can likely still do so, but you will need to inform tomcat about an exploded web application (found in server/solr-webapp) instead of the .war file.

The server/solr_webapp/webapp folder is an exploded web application. Tomcat documentation should be able to tell you how to add such an application.

.. 但如果您现在正在部署 Solr,那么您真的不应该这样做。使用捆绑版本的码头(稍后可能会更改为独立版本)和 solr 命令/脚本。

关于apache - 在 tomcat 上运行 Solr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42529952/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com