Skip to content

Instantly share code, notes, and snippets.

@dotmh
Forked from putermancer/gist:591964
Created January 25, 2014 21:56
Show Gist options
  • Save dotmh/8624259 to your computer and use it in GitHub Desktop.
Save dotmh/8624259 to your computer and use it in GitHub Desktop.
# 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