浏览文章
文章信息
Magento2 Redis save session error:Warning: session_start(): Failed to read session data: user
7036
修改env.php文件中的session中的
增加max_concurrency并发连接到允许的PHP最大进程的10%
'session' => [ 'save' => 'redis', 'save_path' => '/www/wwwroot/www.nicepairs.com/var/session', 'redis' => [ 'host' => '127.0.0.1', 'port' => '6379', 'password' => '', 'timeout' => '2.5', 'persistent_identifier' => '', 'database' => '2', 'compression_threshold' => '2048', 'compression_library' => 'gzip', 'log_level' => '3', 'max_concurrency' => '30', 'break_after_frontend' => '5', 'break_after_adminhtml' => '30', 'first_lifetime' => '600', 'bot_first_lifetime' => '60', 'bot_lifetime' => '7200', 'disable_locking' => '0', 'min_lifetime' => '60', 'max_lifetime' => '2592000' ] ],