Sunday, 15 February 2015

linux - Beanstalkd for CentOs 7 -



linux - Beanstalkd for CentOs 7 -

due misconfiguration i've migrated vps centos 6 centos 7 fresh start. among other things had beanstalkd service installed on centos 6.

at time i've followed tutorial http://viewsfromtheside.com/2014/06/12/install-beanstalkd-centos-6/ , worked me.

but now, can't install beanstalkd on centos 7 version.

i used line 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 tried :

# yum install beanstalkd --enablerepo=epel-testing

and :

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

and :

# yum search beanstalkd

but still : no matches found for: beanstalkd ...

i new centos , epel repos, maybe missed ? anyway, how can install beanstalkd on centos 7 ?

yes, can instal via git , re-create systemd script:

step 0. install git

yum install git

step 1. clone repository

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

step 2. create startup script

create file /etc/systemd/system/beanstalkd.service content:

[unit] description=beanstalkd 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 , systemctl start beanstalkd

step 4. check

ps ax | grep beanstalkd

linux beanstalkd centos7 epel

No comments:

Post a Comment