使用 Beanstalkd 实现队列
打赏作者

chenxin

这个beanstalkd只能在nginx环境吗!不能再apache???

JellyBool 回复 chenxin

这个应该没有什么关系吧。

chenxin 回复 JellyBool

安装了beanstalk启动后刷新页面出现

Socket error 61: Connection refused (connecting to localhost:11300)
JellyBool 回复 chenxin

你去 google 搜一下,我没遇到过这个问题

chenxin 回复 JellyBool

解决了!已经!

xiao 回复 chenxin

我也碰到同样的问题,怎么解决的?

q646448149 回复 chenxin

怎么解决的呢?发现重启这个也不行

xiaofengzhi 回复 JellyBool

mac下我也遇到了service命令未找到重启不了beanstalkd

xiaofengzhi 回复 JellyBool

我的问题已解决 brew services restart beanstalkd已解决重启问题

JellyBool 回复 xiaofengzhi

好的,问题解决就好。

这几天出去玩了,才回来

chenxin

奇了怪了!啥问题没有!但是数据库没数据!插不进去! driver换成database就可以插入,看来还是有问题! 下午看来的安装homestead用用!现在用的是XAMPP来开发!也很方便!但是感觉和你录的视频相差好大啊!

dope2008

mac系统
第一步:brew install beanstalkd
第二步:service beanstalkd start 提示 -bash: service: command not found
然后我就beanstalkd start 提示beanstalkd: unknown argument: start

guanxizhi

老师配置文件queue.php中只让设置一个queue,比如我有两个队列login和order,php artisan queue:work 怎么同时监听两个队列

carsonlius 回复 guanxizhi

官方文档 SendReminderEmail::dispatch($user)->onConnection(‘beanstalkd’)->onQueue(‘send_remind_email’);
php artisan queue:work --queue=send_remind_email --sleep=3 --timeout=120 --tries=3 beanstalkd

JellyBool

在 beanstalk 里面配置两行?

php artisan queue:work --queue login
php artisan queue:work --queue order

类似这样?