|
The main steps are as follows:
1. Download solr-4.4.0.tgz
2, in the / home / wujiaqi / directory, decompress solr-4.4.0.tgz
tar -xzvf solr-4.4.0.tgz
3. Copy ./example/ webapps solr directory / solr.war to the tomcat webapps directory
cp /home/wujiaqi/solr/example/webapps/solr.war / home / wujiaqi / apache-tomcat / webapps /
4. Create a new bin inside tomcat solr directory
cd / home / wujiaqi / apache-tomcat / bin /
mkdir solr
5. Copy collection1 solr.xml solr directory and the example / solr solr directory to the directory tomcat's bin directory
cd / home / wujiaqi / solr / example / solr /
cp -r collection1 / solr.xml / home / wujiaqi / apache-tomcat / bin / solr
6. Copy all jar package solr of example / lib / ext / under the tomcat / webapps / solr / WEB-INF lib directory
cd / home / wujiaqi / solr / example / lib / ext
cp * .jar / home / wujiaqi / apache-tomcat / webapps / solr / WEB-INF / lib
7. In tomcat / webapps / solr / WEB-INF / classes under a new directory, copy the file solr for example / resources down to the classes directory
8, modify tomcat / webapps / solr / WEB-INF / web.xml file, as follows:
|
|
|
|