**Linux centos上安装** git 下载 ~~~ git clone https://github.com/beanstalkd/beanstalkd.git ~~~ 安装 ~~~ cd beanstalkd make ~~~ 运行 ~~~ ./beanstalkd ~~~ or ~~~ ./beanstalkd -l 10.0.1.5 -p 11300 ~~~ -l 指定ip -p 指定端口 后台运行 ``` ./beanstalkd -b /root/logs/binlog & ``` 此文件夹 `/root/logs/binlog` 必须存在 -b表示开启binlog,断电后重启自动恢复任务 **其它安装方式** Debian ~~~ sudo apt-get install beanstalkd ~~~ Ubuntu ~~~ sudo apt-get install beanstalkd ~~~ OS X ~~~ brew install beanstalkd ~~~ MacPorts ~~~ sudo port install beanstalkd ~~~ Fedora 9 and Fedora 10 ~~~ su -c 'yum install beanstalkd' ~~~ CentOS and RHEL ~~~ su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm' su -c 'yum install beanstalkd --enablerepo=epel-testing' ~~~ Arch Linux 安装 yaourt,然后 ~~~ yaourt -S beanstalkd ~~~ Gentoo ~~~ sudo emerge beanstalkd ~~~ **官方提供的安装文档** This is beanstalkd, a fast, general-purpose work queue. See http://kr.github.io/beanstalkd/ for general info. QUICK START $ make $ ./beanstalkd also try, $ ./beanstalkd -h $ ./beanstalkd -VVV $ make CFLAGS=-O2 $ make CC=clang $ make check $ make install $ make install PREFIX=/usr Requires Linux (2.6.17 or later), Mac OS X, or FreeBSD. See doc/protocol.txt for details of the network protocol. Uses ronn to generate the manual. See http://github.com/rtomayko/ronn. SUBDIRECTORIES adm files useful for system administrators ct testing tool; see https://github.com/kr/ct doc documentation pkg miscellaneous files for packagers TESTS Unit tests are in test*.c. See https://github.com/kr/ct for information on how to write them. Copyright © 2007-2013 the authors of beanstalkd. Copyright in contributions to beanstalkd is retained by the original copyright holder of each contribution. See file LICENSE for terms of use.