-
Notifications
You must be signed in to change notification settings - Fork 76
Bootstrapping Qless
Myron Marston edited this page Jul 11, 2013
·
4 revisions
This document focuses on Ubuntu
, but should generalize well to most Linux distributions.
Qless
requires Ruby 1.9.2+
. Fortunately, aptitude
and the like generally have copies available:
# Install, for example, ruby 1.9.3
sudo apt-get install -y ruby1.9.3{,-dev}
gem1.9.1 install qless thin --no-ri --no-rdoc
# And now, you can invoke `qless-web` to get the UI going
qless-web
No more having to fuss with RVM, or building Ruby from source. Just the interface which we're interested in. If this runs successfully, you'll have the UI up and running on port 5678
. A quick sanity check:
curl localhost:5678
If you also need a Redis instance on the machine, then this is a recipe I often find myself using:
# You'll need a few tools to get you going
sudo apt-get update
sudo apt-get install -y make g++
# If you need redis, this should get you going
export REDIS_VERSION=2.6.13
cd && curl -O http://redis.googlecode.com/files/redis-$REDIS_VERSION.tar.gz
tar xf redis-$REDIS_VERSION.tar.gz
cd redis-$REDIS_VERSION
make && sudo make install
# This is where Redis should save its data. Choose this appropriately
export REDIS_DIRECTORY='/mnt/redis'
sudo chown -R ubuntu:ubuntu `dirname $REDIS_DIRECTORY`
mkdir -p $REDIS_DIRECTORY
# And now, we'll configure it
sed -i 's#daemonize no#daemonize yes#' redis.conf
sed "s#dir ./#dir $REDIS_DIRECTORY#" redis.conf | sudo tee /etc/redis.conf
sudo chown ubuntu:ubuntu /etc/redis.conf
# And start it up
redis-server /etc/redis.conf