接上次 https://blog.csdn.net/fareast_mzh/article/details/86575401
启动队列处理程序:
nohup /opt/lampp/bin/php artisan queue:listen > /dev/null 2>&1 &
查看redis队列中的任务:
redis-cli -h localhost -a 密码
ping
info
select 0
scan 0 MATCH * COUNT 10000
type queues:default
ttl queues:default
llen queues:default
lrange queues:default 0 105
redis-cli -h 172.16.0.137 -a 64174eeb8efd4c26902a5074034db28d
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
172.16.0.137:6379> ping
PONG
172.16.0.137:6379> select 13
OK
172.16.0.137:6379[13]> scan 0 match * count 1000
1) "0"
2) 1) "USER:HD:29651607"
2) "USER:HD:29193255"
3) "WO:28634384"
4) "6_97_android_8.0.0_1_1"
5) "WO:29193255"
172.16.0.137:6379[13]> type USER:HD:29651607
set
172.16.0.137:6379[13]> sscan USER:HD:29193255 0 COUNT 1000
1) "0"
2) 1) "4ci6Ws3xgsOctGwMQgqjbQ"
172.16.0.137:6379[13]> scard USER:HD:29193255
(integer) 1
172.16.0.137:6379[13]> sadd USER:HD:29193255 Lr3YD2dfahiL6MFeZ5tFwA==
(integer) 1
172.16.0.137:6379[13]> scard USER:HD:29193255
(integer) 2
172.16.0.137:6379[13]> sscan USER:HD:29193255 0 count 1000
1) "0"
2) 1) "Lr3YD2dfahiL6MFeZ5tFwA=="
2) "4ci6Ws3xgsOctGwMQgqjbQ"