Solr configuration step under linux

Note: You need to configure in advance java environment of good Linux
1: install Tomcat (resource \ matching software \ Tomcat \ apache-tomcat-8.5.15.tar.gz ), unzip.
In the virtual machine,
first enter cd / usr / local
and then create mkdir solr
entering cd solr in a new file and add mkdir ik mkdir solrhome
in the copy three files: cp /root/solr/solr-4.10.3 ./
copy this word to cut ik folder cp /root/IKAnalyzer2012FF_hf1.zip ik /
copy to tomcat cp at solr folder /root/tomcat/apache-tomcat-7.0.47.tar.gz ./

Then extract to the current folder under the tomcat tar -zxvf apache-tomcat-8.5.15.tar.gz -C ./
then change the name to mv apache-tomcat-8.5.15 tomcat

2: Extract solr (resource \ matching software \ Solr \ solr-4.10.3.tgz).
-C-4.10.3.tgz -xvf solr the tar ./
. 3: deploying dist directory under solr solr-4.10.3.war to the \ Tomcat webapps (version removed).
The solr-4.10.3 rename solr-4.10.3 Solr Music Videos
CD Solr / dist /
CP-4.10.3.war /usr/local/solr/tomcat/webapps/solr-4.10.3.war Solr
. 4: Start Tomcat Solutions compress the WAR
cd / usr / local / Tomcat / bin
first start ./startup.sh then closed ./shutdown.sh delete solr.war package

5: put all the jar packages under example / lib under solr / ext directory, solr added to the project (\ WEB-INF \ lib directory).
/root/usr/local/solr/solr-4.10.3/example/lib/ext/*.jar CP / usr / local / solr / Tomcat / the webapps / solr / the WEB-INF / lib /
. 6: program under solr / example / solr directory is a solrhome. Copy this directory to / usr / local renamed solrhome
cp /root/usr/local/solr/solr-4.10.3/example/solr / usr / local / -r
cd / usr / local / Solr
mv Solr solrhome
7: association solr and solrhome. We need to modify the web.xml file solr project.
vi /usr/local/tomcat/webapps/solr/WEB-INF/web.xml
The following is commented by default, you need to let go, otherwise there will be 404
/ usr / local / solr / solrhome this is to start to access files

Solr / Home
/ usr / local / Solr / solrhome
java.lang.String

8: start Tomcat
HTTP: // IP: 8080 / Solr /

Here Insert Picture Description

Published 33 original articles · won praise 0 · Views 867

Guess you like

Origin blog.csdn.net/ninth_spring/article/details/103701668