先從網址
http://labs.mop.com/apache-mirror/lucene/solr/3.6.1/apache-solr-3.6.1.zip 下載程序文件
1.解壓開找到apache-solr-3.6.1\apache-solr-3.6.1\dist目錄下的apache-solr-3.6.1.war
直接放到tomcat/webapps下面
2.先別急著啟動慢慢來,修改配置文件apache-solr-3.6.1\WEB-INF\web.xml
找到:
<!-- People who want to hardcode their "Solr Home" directly into the
WAR File can set the JNDI property here...
-->
<!--
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/put/your/solr/home/here</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
-->
更改這為
<!-- People who want to hardcode their "Solr Home" directly into the
WAR File can set the JNDI property here...
-->
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>d:/solr_work/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
注:紅色字體的文件夾為apache-solr-3.6.1\example\solr 該應用(此為單核應用,多核以后會講到)放大D盤的新建空目錄solr_work目錄下就可以
3.啟動tomcat,輸入http://localhost:8080/solr solr應用搭建成功
原文出自:http://labs.mop.com/apache-mirror/lucene/solr/3.6.1/apache-solr-3.6.1.zip 下載程序文件
1.解壓開找到apache-solr-3.6.1\apache-solr-3.6.1\dist目錄下的apache-solr-3.6.1.war
直接放到tomcat/webapps下面
2.先別急著啟動慢慢來,修改配置文件apache-solr-3.6.1\WEB-INF\web.xml
找到:
<!-- People who want to hardcode their "Solr Home" directly into the
WAR File can set the JNDI property here...
-->
<!--
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/put/your/solr/home/here</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
-->
更改這為
<!-- People who want to hardcode their "Solr Home" directly into the
WAR File can set the JNDI property here...
-->
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>d:/solr_work/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
注:紅色字體的文件夾為apache-solr-3.6.1\example\solr 該應用(此為單核應用,多核以后會講到)放大D盤的新建空目錄solr_work目錄下就可以
3.啟動tomcat,輸入http://localhost:8080/solr solr應用搭建成功
http://insolr.com/forum.php?mod=viewthread&tid=3&reltid=880&pre_thread_id=19&pre_pos=6&ext=