浏览文章

文章信息

Magento2 解决Warning: session_start(): Failed to read session data 14740

app/etc/env.php文件中修改max_concurrency参数为php最大进程数的10%

 'session' => [

        'save' => 'redis',

        'redis' => [

            'host' => '127.0.0.1',

            'port' => '6379',

            'password' => '',

            'timeout' => '2.5',

            'persistent_identifier' => '',

            'database' => '2',

            'compression_threshold' => '2048',

            'compression_library' => 'gzip',

            'log_level' => '4',

            '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',

            'sentinel_master' => '',

            'sentinel_servers' => '',

            'sentinel_connect_retries' => '5',

            'sentinel_verify_master' => '0'

        ]

    ],


原创