Install and Running Supervisord in virtualenv python 2.7

The thing is your default python is 3.x and supervisord is not stable/ready yet for python 3.x so i suggest a solution is to run supervisord in virtualenv of python 2.7

virtualenv --python=/usr/bin/python2.7 env
cd env
./bin/pip install supervisor

Yes. You can first setup a virtualenv and then install supervisor use pip.

virtualenv env
cd env
./bin/pip install supervisor

Create configuration file:

echo_supervisord_conf > /path_to_configuration_file/supervisord.conf

You can run multiple instances, just use different port supervisord listen on in configuration file:

port=127.0.0.1:9001

Leave a Reply

Your email address will not be published. Required fields are marked *