Hrusdik
Hrusdik

Reputation: 235

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 ?

Upvotes: 15

Views: 9113

Answers (5)

Sinan Eldem
Sinan Eldem

Reputation: 5738

Four easy steps to install, enable on boot, start and check status for beanstalkd service on Centos 7:

  • yum install beanstalkd
  • systemctl enable beanstalkd
  • service beanstalkd start
  • service beanstalkd status

Upvotes: 0

Ankit Vishwakarma
Ankit Vishwakarma

Reputation: 1691

  1. yum install beanstalkd
  2. service beanstalkd start
  3. service beanstalkd status

Upvotes: 3

prupert
prupert

Reputation: 29

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

Upvotes: 2

Maxim Demkin
Maxim Demkin

Reputation: 1215

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

Upvotes: 20

LP Papillon
LP Papillon

Reputation: 86

I was able to build from source on Centos 7. Just git clone it:

https://github.com/kr/beanstalkd

Then make, make install as noted there. This works but I could not daemonize it and could not find startup scripts for Centos 7. Ended up just configuring it in supervisord to make sure it always runs.

Upvotes: 0

Related Questions