http://www.blogjava.net/hoojo/archive/2011/10/21/361747.ht
讲的比较全面。
tomcat on windows
single solr app
http://wiki.apache.org/solr/SolrTomcat
Note: For Tomcat 7 and Solr3.4(last version on 2011-09-23), the above option on setenv.bat may not work, so you could not use it and put this code fragment
on $CATALINA_HOME/conf/Catalina/localhost/solr.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="C:\apache-tomcat-7.0.21\webapps\solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="C:\solr" override="true" />
</Context>
could not find ‘solrconfig.xml’, 需要按照wiki 里面说的将\example\solr\下面的文件copy 到设置的solr\home 中。