1. environment preparation: CentOS6.4, Tomcat6.0, Jdk1.7, Solr4.8.12, installation (1) install jdk1.7 (I used jdk1.6 to see version exceptions, so we recommend using jdk1.7 because I use solr4.8) configure environment variables my jdk installation directory is usr/java/jdk1.7 by default (because the rpm installation package is used) 1. prepare the environment for CentOS6.4, atat6.0, Jdk1.7, Solr4.8.1
2. Installation (1) install jdk1.7 (I encountered a version exception when using jdk1.6, so we recommend that you use jdk1.7 because solr4.8 is used) configure the environment variables. the default jdk installation directory is usr/java/jdk1.7 (because the rpm installation package is used) export JAVA_HOME =/usr/java/ Jdk1.7Exprot PATH =.: $ PATH: $ JAVA_HOME/binSave the file and exit. execute the command: source/etc/profile to make it take effect immediately. finally, run the command java-version to view the version information. (2) install Tomcat 6 and decompress Tomcat 6. for convenience, rename the file, decompress the solr directory to/usr/local/tomcat6 (3) install solr and decompress solr4.8.1 to the directory/usr/local/and rename it solr; then copy solr/dist/solr-4.8.1.war to tomcat6/webapps; then modify tomcat6/conf/server. xml
UnpackWARs = "true" autoDeploy = "true"> change webapps to/usr/local/tomcat/webapps. (4) Start tomcat and solr. war is automatically decompressed, and then the web under solr project is modified. xml to enter the bin directory :. /startup. sh start tomcat to modify the solr home configuration (note: remove the comments of this section, otherwise it will not take effect ):
Solr/home
/Usr/local/tomcat/webapps
Java. lang. String
(5) copy the jar package under solr/example/lib/ext to tomcat/webapps/solr/WEB-INF/libcp/usr/local/solr/example/lib/ext /*. jar/usr/local/tomcat6/webapps/solr/WEB-INF/lib/(6) create classpath under tomcat solr and put example/resources/log4j. copy properties to the classpath cp/usr/local/solr/example/resources/log4j. properties/usr/local/tomcat/webapps/solr/classpath/(7) restart tomcat. /shutdown. sh. /startup. sh (8) test open the browser and enter: http: // 192.168.0.9: 8080/solr to enter the sor admin screen.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service