Last active
August 29, 2015 14:13
-
-
Save tsabat/77e444cd1554b2ee7306 to your computer and use it in GitHub Desktop.
install solr on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# instructions adapted from | |
# http://www.valuebound.com/resources/blog/tomcat-7-multi-core-apache-solr-47-installation-and-configuration-with-drupal-7 | |
# https://drupal.stackexchange.com/questions/95897/apache-solr-4-6-0-installation-and-compatibility-with-drupal7/124038#124038 | |
VERSION="4.10.3" | |
cd /opt | |
wget http://apache.petsads.us/lucene/solr/$VERSION/solr-$VERSION.tgz | |
tar -xvf solr-$VERSION.tgz | |
sudo apt-get -y install openjdk-7-jdk | |
apt-get install tomcat7 | |
curl localhost:8080 | |
cp /opt/solr-$VERSION/dist/solrj-lib/* /usr/share/tomcat7/lib/ | |
cp /opt/solr-$VERSION/example/lib/ext/* /usr/share/tomcat7/lib/ | |
cp /opt/solr-$VERSION/example/resources/log4j.properties /var/lib/tomcat7/conf/ | |
cp /opt/solr-$VERSION/dist/solr-$VERSION.war /var/lib/tomcat7/webapps/solr.war | |
mkdir /var/lib/tomcat7/solr | |
chown tomcat7:tomcat7 /var/lib/tomcat7/solr | |
cp /opt/solr-$VERSION/example/solr/collection1/ /var/lib/tomcat7/solr/ | |
cp -r /opt/solr-$VERSION/example/solr/collection1/ /var/lib/tomcat7/solr/ | |
chown -R tomcat7:tomcat7 /var/lib/tomcat7/solr | |
sudo service tomcat7 restart | |
curl localhost:8080/solr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment