Install Beanstalkd on Ubuntu 12.04

April 22nd, 2015

Warning: This post is 9 years old. Some of this information may be out of date.

To install beanstalkd on ubuntu 12.04 you use the system package manger apt:

apt-get install beanstalkd

When that is done, edit the config file and enable it to start on boot by uncommenting the bottom line:

$ vim /etc/default/beanstalkd


## Defaults for the beanstalkd init script, /etc/init.d/beanstalkd on
## Debian systems. Append ``-b /var/lib/beanstalkd'' for persistent
## storage.
BEANSTALKD_LISTEN_ADDR=0.0.0.0
BEANSTALKD_LISTEN_PORT=11300
DAEMON_OPTS="-l $BEANSTALKD_LISTEN_ADDR -p $BEANSTALKD_LISTEN_PORT"

## Uncomment to enable startup during boot.
START=yes

Start beanstalkd:

$ service beanstalkd start

Test it:

$ telnet 127.0.0.1 11300

Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

If you see the following, it hasn't worked:

$ telnet 127.0.0.1 11300
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused