直接連接哨兵的ip和端口加上密碼 啟動(dòng)報(bào)錯(cuò)連接不上
RuntimeException: ERR unknown command ZREVRANGEBYSCORE
, with args beginning with: {redis-queue}-delayed
, 1706664021
, -inf
, LIMIT
, 0
, 128
, in E:\phpstudy_pro\WWW\api_process\vendor\workerman\redis-queue\src\Client.php:177
Stack trace:
難道只能連接主機(jī)嘛?
redis隊(duì)列不支持哨兵模式
return [
'default' => [
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'database' => 0,
],
'consume' => [
'host' => '127.0.0.1',
'password' => null,
'port' => 6379,
'database' => 1,
],
'sbredis'=>[
'tcp://120.78.149.146:26379',
'tcp://47.106.70.241:26379',
'options'=>[
'replication' => 'sentinel',
'service' => 'testmaster', //sentinel
'parameters' => [
'password' => 'ymyx123', //redis的密碼,沒有時(shí)寫null
'database' => 10,
],
]
]
]; 我試了 不太行.. 你配置能給我參考一下嗎