Click here to download the address in this version 6.3 of Apache
OK, the whole general order is that we do the stand-alone stage first.
Complete the stand-alone and then through copy and the corresponding zookeeper configuration to take care of the cluster.
This article is first used to introduce a single machine.
Single Stage
Place the file in the/USR/LOCAL/SOLR.
CD/USR/LOCAL/SOLR
wget https://mirrors.tuna.tsinghua.edu.cn/apache/lucene/solr/6.3.0/solr-6.3.0.tgz
tar -ZXVF solr-6.3.0.tgz
The corresponding project file after decompression can be placed in Tomcat and renamed.
CD Solr-6.3.0/server/solr-webapp
cp a cp-a webapp/usr/local/testtomcat/webapps
mv WebApp SOLR
Then copy the required package environment into Tomcat.
1. Copy all the jar packages under solr-6.3.0/server/lib/ext/to the testtomcat/webapps/solr/web-inf/lib/directory.
2. Copy the Log4j.properties file under Solr-6.3.0/server/resources/to the testtomcat/webapps/solr/web-inf/directory
3. Copy the Solr-dataimporthandler-6.3.0.jar and Solr-dataimporthandler-extras-6.3.0.jar under Solr-6.3.0/dist to the testtomcat/ Under the webapps/solr/web-inf/lib/directory
cd/usr/local/solr/solr-6.3.0/server/lib/ext/
CP *.jar/usr/local/testtomcat/webapps/solr/web-inf
cp/usr/ Local/solr/solr-6.3.0/server/resources/log4j.properties/usr/local/testtomcat/webapps/solr/web-inf
cp/usr/ Local/solr/solr-6.3.0/server/resources/log4j.properties/usr/local/testtomcat/webapps/solr/web-inf
cp/usr/ local/solr/solr-6.3.0/dist/solr-dataimporthandler-*/usr/local/testtomcat/webapps/solr/web-inf/lib
When the stand-alone environment is ready, make the corresponding configuration file changes so that it has the corresponding permissions.
Restore the part that corresponds to the original bet and write the corresponding installation path.
Modify the front line around 40th
<!--
<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>
after modification
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/usr/local/solr/solr-6.3.0/ server/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
In addition, because the test environment is only built, so the corresponding security part of the note.
After entering the production environment, it can be optimized.
About 167 lines around this section comment
<!--Get rid of error message--
<!--disable by Lekko
<security-constraint& gt;
<web-resource-collection>
<web-resource-name>disable trace</web-resource-name>
< url-pattern>/</url-pattern>
OK, start Tomcat to see if there's any problem.
Enter http://Your IP address 8080/solr/index.html can look at the state.
Search Related Tips
The
Indexed (indexed) field or field can be searched. The
stored (stored) field or field can be displayed. The
tokenized field or field must have been analyzer to change into a word (tokens).