1. Unzip the Tar
TAR-ZXVF solr-4.10.3.tgz.tgz-c/opt
2. Rename to Solr
MV SOLR-4.10.3/SOLR
3. TheSOLR/dist/solr-4.10.3.war package is deployed under Tomcat. and changed its name to Solr.war .
[email protected] dist]# CP Solr-4.10.3.war/opt/tomcat/webapps/solr.war
4 . Unzip the war package. Start Tomcat automatic decompression. Turn Tomcatoff. Delete Solr.war.
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/97/B6/wKiom1kxdqiRXTb2AAAghPvSK-s350.jpg "title=" 1496413817 (1). jpg "alt=" wkiom1kxdqirxtb2aaaghpvsk-s350.jpg "/>
5. Copy all the jar Packages in the/root/solr-4.10.3/example/lib/ext directory to the SOLR Project
[[email protected] ext]# CP */opt/tomcat/webapps/solr/web-inf/lib/
6. Create the Solrhome directory under/SOLR
Solrhome is to store SOLR directory of all configuration files of the server, create directories, and copy all SOLR/EXAMPLE/SOLR files .
[[email protected] solr]# mkdir solrhome[[email protected] solr]# CD Example/solr/[[email protected] solr]# CP *-R/OPT/S Olr/solrhome/cp:overwrite '/opt/solr/solrhome/readme.txt '? Ycp:overwrite '/opt/solr/solrhome/solr.xml '? Ycp:overwrite '/opt/solr/solrhome/zoo.cfg '? Y[[email protected] solr]#
7 . Modify the Web. XML file for SOLR project
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>/opt/solr/ Solrhome</env-entry-value> <env-entry-type>java.lang.string</env-entry-type></env-entry >
Description
<ENV-ENTRY-VALUE>XXXX</ENV-ENTRY-VALUE>: Configure the path to the solrhome we created earlier
8. Launch Tomcat, test
Visit: HTTP://192.168.91.8:8080/SOLR
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/97/BB/wKiom1kyBALgFpF5AAEFGdddUuw138.jpg "title=" 1496449998 (1). jpg "alt=" wkiom1kybalgfpf5aaefgddduuw138.jpg "/>
This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1931877
Linux Learning: Installing SOLR