编辑
我写了一个关于多核运行的快速方法:http: //charlesleifer.com/blog/solr-ubuntu-revisited/
按照以下两个站点的说明,我安装了Tomcat 6 和Solr 1.4。
- http://gist.github.com/204638
- https://wiki.fourkitchens.com/display/TECH/Solr+1.4+on+Ubuntu+9.10+and+CentOS+5
我已经成功地在运行 9.04 并支持多核的服务器上启动并运行它,但在 10.04 上我似乎无法让它工作。
我可以在 10.04 框上访问 localhost:xxxx/solr/ 并看到一个指向 Solr Admin 的链接,但点击该链接会将我带到一个 404 页面,并显示以下输出:
/solr/admin/
HTTP Status 404 - missing core name in path
The requested resource (missing core name in path) is not available
我也无法像我一样访问 /solr/site1/ - 它同样返回 404。
<!-- from /var/solr/solr.xml, site dirs exist -->
<cores adminPath="/admin/cores">
<core name="site1" instanceDir="site1" />
<core name="site2" instanceDir="site2" />
</cores>
<!-- from /etc/tomcat6/Catalina/localhost/solr.xml -->
<Context docBase="/var/solr/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/var/solr" override="true" />
</Context>