Ensure Java 1.7 is installed and is default selected JAVA_HOME or install
yum install java-1.7.0-openjdk-devel.x86_64
alternatives –update java
1. cd /usr/local/src
2. mkdir RPMS
3. cd RPMS
4. wget http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-release-6-3.jpp6.noarch.rpm
5. yum localinstall jpackage-release-6-3.jpp6.noarch.rpm
6. yum install tomcat6 (may need –nogpgcheck flag for dependencies)
7. wget ftp://ftp.pbone.net/mirror/www.jpackage.org/jpackage/5.0/generic/free/RPMS/jakarta-poi-3.2-1.jpp5.noarch.rpm
8. yum localinstall jakarta-poi-3.2-1.jpp5.noarch.rpm
9. yum install ant
10. chkconfig –level 3 tomcat6 on
11. chkconfig –level 4 tomcat6 on
12. chkconfig –level 5 tomcat6 on
13. chkconfig –level 6 tomcat6 on
14. cd /usr/share
15. wget http://mirrors.sonic.net/apache/lucene/solr/4.8.1/solr-4.8.1.tgz
16. tar xzvf solr-4.8.1.tgz
17. vi /usr/share/tomcat6/conf/Catalina/localhost/solr-example.xml
<?xml version="1.0" encoding="utf-8"?>
<Context docBase="/usr/share/solr-4.8.1/example/webapps/solr.war" debug="0"
crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/usr/share/solr-4.8.1/example/solr" override="true" />
</Context>
18 chmod -R a+rwx /usr/share/solr-4.8.1/example
19 cd /usr/share/tomcat6/lib
20 cp /usr/share/solr-4.8.1/example/lib/ext/*.jar .
21 service tomcat6 stop
22 service tomcat6 start
23 http://servername.com:8080/solr-example/
Done.