Skip to content

Instantly share code, notes, and snippets.

@heiglandreas
Forked from putermancer/gist:591964
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heiglandreas/11243919 to your computer and use it in GitHub Desktop.
Save heiglandreas/11243919 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
sudo cp -r /usr/local/opt/solr/libexec/example/multicore/* /Library/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 /Library/Solr
# 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 /Library/Solr
# 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