1、在GatewayWorker/Lib/Store.php大概在84行下添加一行代码:self::$instance->auth(\Config\Store::$redis_auth);
2、在Applications/YourApp/Config/Store.php大概在52行下添加一行代码:public static $redis_auth = "";
具体代码如下:
GatewayWorker/Lib/Store.php{
ini_set('default_socket_timeout',-1);
self::$instance = new \GatewayWorkerinstance->ping();
}catch (\RedisException $e){
self::$instance = new \GatewayWorker