Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Beanstalkd for CentOs 7

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 ?

like image 725
Hrusdik Avatar asked Nov 06 '14 18:11

Hrusdik


Video Answer


3 Answers

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

like image 199
Maxim Demkin Avatar answered Sep 28 '22 18:09

Maxim Demkin


  1. yum install beanstalkd
  2. service beanstalkd start
  3. service beanstalkd status
like image 29
Ankit Vishwakarma Avatar answered Sep 28 '22 18:09

Ankit Vishwakarma


A request to publish a beanstalkd rpm package in EPEL for CentOS 7 has been made via https://bugzilla.redhat.com/show_bug.cgi?id=1139358. You have to wait for the package maintainer to publish a package.

Meanwhile you can build your own package or download and install the RPM from http://cbs.centos.org/koji/buildinfo?buildID=686:

yum install http://cbs.centos.org/kojifiles/packages/beanstalkd/1.9/3.el7/x86_64/beanstalkd-1.9-3.el7.x86_64.rpm
like image 29
prupert Avatar answered Sep 28 '22 17:09

prupert