我试图在Ubuntu 12.04服务器上运行Tomcat 7下的Solr 4.8,这将使用sunspot_rails
gem 从Rails 4应用程序访问.
目前我只是使用Solr 4.8中的多核示例进行测试,以验证它是否使用默认配置.
Tomcat正常运行(curl localhost:8080
返回"It is working"页面),我在Tomcat或Solr日志中看不到任何错误.但curl localhost:8080/solr
不返回任何东西,并curl localhost:8080/solr/update
返回The requested resource (/solr/update) is not available.
.(我在localhost上使用curl,因为我无法远程访问Tomcat 7管理员或Solr管理员).
我已经将solr.war
示例中的文件复制到多核,并将所有jar文件和log4j.properties复制到tomcat7/lib中(基本上只是按照这里的说明进行操作,但当然是4.8版本http://gagannaidu.blogspot.no/2014/ 02/apache-solr-461-tomcat7-setup-on-ubuntu.html):
sudo cp /usr/share/solr/example/webapps/solr.war /usr/share/solr/example/multicore/solr.war sudo cp -r solr/example/lib/ext/* /usr/share/tomcat7/lib sudo cp -r solr/example/resources/log4j.properties /usr/share/tomcat7/lib
我还将多核文件夹的所有者设置为tomcat7:
sudo chown -R tomcat7 /usr/share/solr/example/multicore
这是我的配置文件:
solr.xml在/ var/lib中/ tomcat7/conf目录/卡塔利娜/本地主机:
/ usr/share/solr/example/multicore中的solr.xml:
${urlScheme:}
我已经尝试将hostPort更改为"${jetty.port:8080}"
或只是"8080"
但这似乎没有帮助.
任何人都知道我能做些什么来让这个工作?