Skip to content

Instantly share code, notes, and snippets.

@fcurella
Forked from putermancer/gist:591964
Created May 17, 2011 14:56
Show Gist options
  • Save fcurella/976625 to your computer and use it in GitHub Desktop.
Save fcurella/976625 to your computer and use it in GitHub Desktop.
Set up a local solr instance on mac
# Setting up a local solr instance on a mac
# install solr with homebrew
brew install solr
# create the base solr index directory
mkdir -p /data/solr
# make sure you can write to the solr logs
sudo chown -R `whoami` /usr/local/Cellar/solr/
# go! Note: you must use the fully-qualfied path!
solr /full/path/to/multicore
# If you get weird error messages when you launch solr, it is likely due to permissions
# or lacking a "logs" directory (the error message will show you where it is expecting it).
# Create the log directory if necessary. and verify permissions or just run as the super user:
#
# sudo solr /full/path/to/multicore
# http://localhost:8983/solr/product/select/?q.alt=*:*&start=0&rows=10&indent=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment