1.JDK Installation and Configuration
1) Depending on the type of computer, download the appropriate JDK version on the website
2) Double-click the Jdk-8u5-windows-x64.exe installation package, always click on the next step, note the installation directory of the JDK and JRE.
3) environment variable configuration: computer = "advanced system setting =" Advanced = "environment variable
New at System variable point,
New variable name java_home, variable value: JDK installation path
The new variable is named CLASSPATH and the variable value is:
.; %java_home%\lib;%java_home%\lib\tools.jar (Note the beginning of the. and;)
Edit the variable name Path, which is added after the original:
;%java_home%\bin;%java_home%\jre\bin (be careful not to miss out the front; No.)
After configuring the cmd window input javac, the configuration is displayed as follows.
2.Tomcat Installation and Configuration
1) According to the computer type, to the official website to download the corresponding Tomcat version
This version is the decompression version, the extracted apache-tomcat-8.0.8 files into the directory you think appropriate, do not need to install, as long as the simple configuration can be.
2) Modify the Startup.bat, Shutdown.bat file under the C:\apache-tomcat-8.0.8\bin folder:
Add the following two lines before the first line--
SET JAVA_HOME=JDK Directory
SET Catalina_home= in front of the extracted Tomcat directory
For example:
SET Java_home=c:\program files\java\jdk1.8.0_05
SET catalina_home=c:\apache-tomcat-8.0.8
3) Double-click Startup.bat, then open the Tomcat service, Access http://localhost:8080/, can display the Tomcat site is configured.
Double-click Shutdown.bat to close the service.
4) If you need to modify the port number, open the Servlet.xml file under the Conf folder in the TOMCAT installation directory, modify the <connector port= "8080" protocol= "http/1.1" ConnectionTimeout = "20000" redirectport= "8443"/> node. Tomcat has been configured in the front, but every start service will have a black form bounce out, a bit uncomfortable, but in the process of learning SOLR, if there are errors, this black form will prompt error message.
5) Optional step: Install Tomcat into the Windows service
Switch to the C:\apache-tomcat-8.0.8\bin directory in the cmd window
Installation: Service Install Tomcat
Uninstall: Service Uninstall Tomcat
After installation, the Tomcat service can be found in the service
3.SOLR configuration (mine is solr4.7.2 version)
Turn off the Tomcat service before configuring
1) Unzip the downloaded SOLR tarball, and extract the directory structure as
2) put the Solr folder under the solr-4.7.2/example/folder on your hard drive where you want to store it, I put it in the C drive directory.
3) Copy the Solr.war from the SOLR-4.7.0/EXAMPLE/WEBAPP/SOLR directory in the extracted SOLR directory to the C:\apache-tomcat-8.0.8\webapps directory and start Tomcat, SOLR. The war will be automatically extracted, the WebApp directory will appear in the SOLR directory, in some directories find the Web-inf folder, modify the Web. xml file under the folder
Remove the comment from this node and modify the contents of the <env-entry-value> node as follows: The second step of the SOLR directory, for example: <env-entry-value>c:\solr</env-entry-value >
4) Place the jar package under the Solr-4.7.2/example/lib/ext directory under C:\apache-tomcat-8.0.8\webapps\solr\WEB-INF\lib
5) Then restart Tomcat, enter http://localhost:8080/solr/admin in the address bar, and see Solr's page to indicate the configuration was successful.
1.JDK, Tomcat, SOLR installation and configuration