Created
September 10, 2013 15:44
-
-
Save DavidToca/6511330 to your computer and use it in GitHub Desktop.
install solr on linux
This file contains hidden or 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
| #install java | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java7-installer | |
| #check is installed | |
| java -version | |
| #install curl | |
| sudo apt-get install libcurl3 libcurl3-dev curl | |
| #download solr | |
| curl -O http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz | |
| tar -xvf apache-solr-3.6.2.tgz | |
| cd apache-solr-3.6.2/ | |
| export SOLR_DIR=`pwd` | |
| export SOLR_PROJECT=project_name | |
| mv example $SOLR_PROJECT | |
| #in project | |
| ./manage.py update_index | |
| ./manage.py build_solr_schema > $SOLR_DIR/$SOLR_PROJECT/solr/conf/schema.xml | |
| #run solr | |
| cd $SOLR_DIR/$SOLR_PROJECT | |
| java -jar start.jar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment