1. Download access to Linux tools SECURCRT Link: https://pan.baidu.com/s/1zTwzmnzUmnwbKUCNHCLN1g Password: kpyg
2. Download the required JDK solr tomcat link: https://pan.baidu.com/s/1j32EHEh2peCntzLWBP54Ww Password: mg4a
3. Use SECURCRT to enter Linux
4. Upload the JDK SOLR tomcat to the server root directory
5. Creating a directory sudo Mkdir/usr/java
6. Move JDK to Java directory sudo mv Jdk-7u55-linux-i586.tar.gz/usr/java
7. Unzip the JDK after sudo tar-zxvf jdk-7u55-linux-i586.tar.gz and delete the JDK package
8. Configure the environment variable vim/etc/profile at the end of the file configuration
Export java_home=/usr/java/jdk1.7.0_55
Export JRE_HOME=/USR/JAVA/JDK1.7.0_55/JRE
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib
Export path= $PATH: $JAVA _home/bin
9. Effective configuration Source/etc/profile
10. Verify the Java installation situation Java-version
11. Go to root directory to extract Tomcat sudo tar-zxvf apache-tomcat-7.0.47.tar.gz
12. Create the SOLR directory MKDIR/USR/LOCAL/SOLR
13. Copy Tomcat to the SOLR directory CP apache-tomcat-7.0.47/usr/local/solr/tomcat-r and check if replication succeeded
14. Go to root directory unzip SOLR sudo tar-zxvf solr-4.10.3.tgz.tgz
15. Copy Solr to Tomcat under Cp/solr-4.10.3/dist/solr-4.10.3.war/usr/local/solr/tomcat/webapps/solr.war
16. Go to the Tomcat Bin directory to start Tomcat Auto decompression Solr.war and then stop Tomcat and delete the war package does not remove Solr.war the next time you start Tomcat will automatically decompress Solr.war overwrite the current SOLR
17. Copy all the jar packages under the Solr-4.10.3/example/lib/ext directory under the root directory to the SOLR project (go to the ext. CP */usr/local/solr/tomcat/webapps/solr/web-inf /lib/)
18. Create a solrhome. Solrhome is the directory where all the configuration files for the SOLR server are stored (Solrhome created under/usr/local/solr/)
19. Copy solr-4.10.3/example under SOLR to Solrhome (Cp-r solr/usr/local/solr/solrhome)
20. Modify the Web. xml file of the SOLR project to tell the server where the Solrhome is located (<env-entry-value>/put/your/solr/home/here</env-entry-value > Replace with/USR/LOCAL/SOLR/SOLRHOME/SOLR, and remove <env-entry> pre-comment)
21. Start Tomcat (go into the bin of Tomcat to execute./startup.sh boot)
SOLR Server Setup (Linux edition)