Beanstalkd – Simple, Fast Queue – Installation

Manual Installation from Github Repository

# create download and build directory
mkdir -p ~/build/beanstalkd
cd  ~/build/beanstalkd
 
# download repository - alternatively use the latest stable zip archive from
git clone git://github.com/kr/beanstalkd.git
cd beanstalkd
# build and install
make
sudo make install
 
# link binary - original debian package init.d script uses hard coded /usr/bin/beanstalkd
sudo ln -s /usr/local/bin/beanstalkd /usr/bin/beanstalkd
 
 
# download default properties
cd  ~/build/beanstalkd
wget -O beanstalkd.default https://raw.github.com/guguncube/bash/master/beanstalkd/default/beanstalkd
sudo cp beanstalkd.default /etc/default/beanstalkd
sudo chown 0:0 /etc/default/beanstalkd
 
# download init.d script
wget -O beanstalkd.init.d https://raw.github.com/guguncube/bash/master/beanstalkd/init.d/beanstalkd
sudo cp beanstalkd.init.d /etc/init.d/beanstalkd
sudo chown 0:0 /etc/init.d/beanstalkd
sudo chmod u+x /etc/init.d/beanstalkd
 
#create journal path before usage, otherwise beanstalkd will not start at all
sudo mkdir -p /var/lib/beanstalkd
 
#create log path
sudo mkdir -p /var/log/beanstalkd
 
# start beanstalkd
sudo /etc/init.d/beanstalkd start
#sudo /usr/local/bin/beanstalkd -l 0.0.0.0 -p 11300 -b /var/lib/beanstalkd -V
 
# check beanstalkd status
sudo /etc/init.d/beanstalkd status