Created
September 16, 2015 05:08
-
-
Save iflamed/d3f14bbad529b569da56 to your computer and use it in GitHub Desktop.
Beanstalkd Centos 7 systemctl config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# beanstalkd | |
Beanstalkd Centos 7 | |
http://stackoverflow.com/questions/26786368/beanstalkd-for-centos-7?answertab=active#tab-top | |
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` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment