安装

cd lnmp1.4

./addone.sh

redis

 

'cache'                  => [
        // 驱动方式
        'type'       => 'redis',
        // 缓存前缀
        'prefix'     => '',
        // 缓存有效期 0表示永久缓存
        'expire'     => 0,

        'host'       => '127.0.0.1',
        'port'       => 6379,
        'password'   => '您的密码',
        'select'     => 0,
        'timeout'    => 0,
        'persistent' => false,
    ],

  

记得防火墙里允许6379端口

相关文章:

  • 2021-11-13
  • 2021-11-09
  • 2022-01-08
  • 2021-05-16
  • 2021-05-26
  • 2021-05-17
  • 2021-12-03
  • 2021-06-12
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-11-16
  • 2021-07-11
  • 2022-12-23
相关资源
相似解决方案