Install Beanstalkd on Ubuntu 12.04


Posted by Andrew McCombe on Wed Apr 22, 2015

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