Beanstalkd for CentOs 7

Hrusdik picture Hrusdik · Nov 6, 2014 · Viewed 7.6k times · Source

Due to a misconfiguration I've migrated a VPS from CentOs 6 to CentOs 7 for a fresh start. Among other things I had a beanstalkd service installed on CentOs 6.

At the time I've followed this tutorial http://viewsfromtheside.com/2014/06/12/install-beanstalkd-centos-6/ and it worked perfectly for me.

But now, I can't install Beanstalkd on my CentOs 7 version.

I used those line for EPEL repo :

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
# rpm -ivh epel-release-7-2.noarch.rpm

Then I tried :

# yum install beanstalkd --enablerepo=epel-testing

and :

# yum --disablerepo="*" --enablerepo="epel" list available | grep 'beanstalkd'

and even :

#  yum search beanstalkd

But still : No matches found for: beanstalkd ...

I am new to CentOs and EPEL repos, so maybe I missed something ? Anyway, how can I install Beanstalkd on CentOs 7 ?

Answer

Maxim Demkin picture Maxim Demkin · Nov 27, 2014

Yes, you can instal it via git and then copy systemd script:

Step 0. Install git

yum install git

Step 1. Clone repository

git clone git://github.com/kr/beanstalkd.git
cd beanstalkd
make
cp beanstalkd /usr/bin/beanstalkd
mkdir /var/lib/beanstalkd

Step 2. Make startup script

Create file /etc/systemd/system/beanstalkd.service with this content:

[Unit]
Description=Beanstalkd is a simple, fast work queue

[Service]
User=root
ExecStart=/usr/bin/beanstalkd -b /var/lib/beanstalkd

[Install]
WantedBy=multi-user.target

Step 3. Finally, run

systemctl enable beanstalkd and systemctl start beanstalkd

Step 4. Check

ps ax | grep beanstalkd