<Context docBase="D:/Program Files/apache-tomcat-7.0.29/apache-tomcat-7.0.29/webapps/solr" debug="0" crossContext="true" > <Environment name="solr/home" type="java.lang.String" value="D:/Program Files/solr-tomcat/solr" override="true" /> </Context>
步驟4,從solr-4.10.1\example\lib\ext複製全部的jar到tomcat/lib下,並複製solr-4.10.1\example\resources\log4j.properties到tomcat/lib下(有關日誌的說明,見http://wiki.apache.org/solr/SolrLogging),須知,solr-4.10.1.jar並無自帶日誌打印組件,所以這個步驟不執行,可能引發「org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter SolrRequestFilter org.apache.solr.common.SolrException: Could not find necessary SLF4j logging jars.」異常; java
步驟5,啓動Tomcat,訪問 solr的admin頁面 http://127.0.0.1:8086/solr。 web
有關solr在不一樣web容器下部署的說明,能夠參考官方說明http://wiki.apache.org/solr/SolrInstall