码迷,mamicode.com
首页 > 系统相关 > 详细

linux install beanstalkd

时间:2017-07-25 22:35:31      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:service   enable   osi   code   pre   check   repos   systemd   install   

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

linux install beanstalkd

标签:service   enable   osi   code   pre   check   repos   systemd   install   

原文地址:http://www.cnblogs.com/Amos-Turing/p/7236403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!