用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1787|回复: 5
收起左侧

[Session/Cookie] session配置为memcached或redis后的错误提示!!

[复制链接]
发表于 2018-1-26 14:14:52 | 显示全部楼层 |阅读模式
  1. $config['sess_driver'] = 'redis';
  2. $config['sess_save_path'] = 'localhost:11211';
  3. $config['sess_save_path'] = 'tcp://127.0.0.1:6379';
复制代码


配置后运行日志有大量如下错误:
  1. ERROR - 2018-01-26 13:12:10 --> Session: Error while trying to obtain lock for ci_session:8gjd1nduds8ablv48m2m2ceeujlbp3je
  2. ERROR - 2018-01-26 13:12:10 --> Severity: Warning --> Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (tcp://127.0.0.1:6379) Unknown 0
复制代码

修改配置为memcached后也有类似提示,有没有人知道什么原因?

我运行环境是Centos7+nginx+php5.6,redis和memcached都是新的!CI3.1.6

本版积分规则