1、按文檔安裝webman-permission插件,啟動(dòng)webman時(shí)報(bào)錯(cuò)。報(bào)錯(cuò)內(nèi)容是 protocol error, got 'H' as reply type byte
2、已安裝的插件有 php-di/php-di
webman/redis-queue
tinywan/jwt
。redis可以正常使用
有人知道這是什么原因嗎?
你這報(bào)錯(cuò)和這個(gè)插件沒(méi)關(guān)系
我這在使用 LaravelDatabaseAdapter 會(huì)復(fù)現(xiàn),配置里面的「enable」改成 false 就沒(méi)這個(gè)錯(cuò)了。
@Arsenal 也是會(huì)報(bào)以下錯(cuò)
worker[webman:95805] exit with status 11
worker[websocket:95814] exit with status 11
worker[monitor:95810] exit with status 11
worker[webman:95804] exit with status 11
worker[webman:95803] exit with status 11
改成 $redis = new Client('redis://' . ( $config['host'] ?? '127.0.0.1') . ':' . ($config['port'] ?? 6379)); 這樣
應(yīng)該就是 yzh52521 所說(shuō)的問(wèn)題。v1.0.6有問(wèn)題。我看v1.0.7已經(jīng)沒(méi)有這個(gè)問(wèn)題了
RedisWatcher.php
createRedisClient 方法
下面這個(gè)bug
$redis = new Client('redis://' . $config['host'] ?? '127.0.0.1' . ':' . $config['port'] ?? 6379);
丟失了端口
修改成
$host = $config['host'] ?? '127.0.0.1';
$port = $config['port'] ?? 6379;
$redis = new Client('redis://' . $host . ':' . $port);
行內(nèi)這么寫,如果不存在要報(bào)錯(cuò)的
$redis = new Client('redis://' . ($config['host'] ?? '127.0.0.1') . ':' . ($config['port'] ?? 6379));
需要包起來(lái)