apt-get install solr-tomcat 剪切/etc/solr/conf中的schema.xml和solrconfig.xml,为schema.xml.bak和solrconfig.xml.bak 把drupal solr模块中的schema.xml和solrconfig.xml文件连接到/etc/solr/conf中 cd /etc/solr/confmv schema.xml schema.xml.bakmv solrconfig.xml solrconfig.xml.bakln -s [you site modules]/apachesolr/schema.xml schema.xmlln -s [you site modules]/apachesolr/solrconfig.xml solrconfig.xml编辑solrconfig.xml文件,找到类似于 <!-- Used to specify an alternate directory to hold all index data
8 _$ `% d% L( S X! p, X# }$ q2 R other than the default ./data under the Solr home.
; h1 ~. n0 o( @6 N( ~$ Z If replication is in use, this should match the replication configura tion. -->
/ ~: l2 i" r [. t7 J/ `: v <!--/ c5 s5 Q- C3 \; B% ]8 v5 e
<dataDir>${solr.data.dir:./solr/data}</dataDir>' O6 A- g3 X* I) ]0 p$ Y
--> 下增加 <dataDir>/var/lib/solr/data</dataDir>重启 /etc/init.d/tomcat6 restart 访问地址为 localhost:8080/solr 还需要改 搜索模块为 Apache Solr search 就可以用了 6 l* R' T7 d8 e: y0 b
1 c& l5 r3 ~; F6 [( P) _
2 t7 a/ a; D" `- p/ L6 E
. A1 \7 t7 p7 T/ Q( n) A9 w: H0 M |