1 安装
1.1 安装git
yum install git
1.2 克隆资源
git clone git://github.com/kr/beanstalkd.git
cd beanstalkd
make
cp beanstalkd /usr/bin/beanstalkd
mkdir /var/lib/beanstalkd
1.3 创建启动脚本
创建 /etc/systemd/system/beanstalkd.service
vi /etc/systemd/system/beanstalkd.service
文件内容如下
[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
1.4 启动
systemctl enable beanstalkd
systemctl start beanstalkd
1.5检查
ps ax | grep beanstalkd
参考文献: