Skip to content

Instantly share code, notes, and snippets.

@furins
furins / install_solr.sh
Last active May 8, 2017 21:22
install supervisor and solr, code almost copied by http://martinbrochhaus.com/solr.html
SOLR_VERSION=4.5.1
WEBFACTION_USER=username
MY_SUPERVISOR_CONF_ID=7399041
# retrieve a standard supervisor.conf
mkdir ~/tmp
cd ~/tmp
wget -O supervisor.conf.json https://api.github.com/gists/$MY_SUPERVISOR_CONF_ID && cat supervisor.conf.json|python -c 'import json,sys;obj=json.load(sys.stdin);print obj["files"]["supervisor.conf"]["content"]' > ../supervisord.conf
rm supervisor.conf.json
cd ~
@furins
furins / supervisor.conf
Last active December 27, 2015 22:29
base supervisor config - replace "username" with your name (based on http://martinbrochhaus.com/solr.html setup, thanks Martin!)
;base supervisor config - replace "username" with your name (based on http://martinbrochhaus.com/solr.html setup, thanks Martin!)
[unix_http_server]
file=/home/username/tmp/supervisor.sock
[supervisord]
logfile=/home/username/my/logs/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info