1 2 3 4 5 6 7 8 |
//下载地址:http://kr.github.io/beanstalkd/download.html tar -zxvf ./beanstalkd-1.10.tar.gz cd beanstalkd-1.10 make install PERFIX=/usr/bin/beanstalkd //查看相关命令 beanstalkd -h //启动服务 表示监听本机11300端口 11300是默认端口 &表示后台运行 beanstalkd -l 127.0.0.1 -p 11300 & |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
//下载地址:https://github.com/nil-zhang/php-beanstalk/ //先安装libbeanstalkclient //下载地址:https://github.com/bergundy/libbeanstalkclient/tarball/master tar -zxvf ./bergundy-libbeanstalkclient-b6ec294.tar.gz //重命名 mv bergundy-libbeanstalkclient-b6ec294.tar.gz libbeanstalkclient cd libbeanstalkclient mkdir m4 ./autogen.sh //查看/etc/ld.so.conf下是否有/usr/lib,没有则加上 vim /etc/ld.so.conf ldconfig //再安装php扩展 //下载地址:https://github.com/nil-zhang/php-beanstalk/tarball/master tar -zxvf nil-zhang-php-beanstalk-e345e9b.tar.gz mv nil-zhang-php-beanstalk-e345e9b.tar.gz php-beanstalk cd php-beanstalk phpize ./configure --with-php-config=/usr/local/php/bin/php-config make make install //在php.ini中增加extension=beanstalk.so 重启php-fpm |