|
发表于 2016-1-14 20:24:55
|
显示全部楼层
本帖最后由 webx32 于 2016-1-14 21:06 编辑
session redis配置- $config['sess_driver'] = 'redis';
- $config['sess_save_path'] = 'tcp://127.0.0.1:6379?auth=xxxx&database=sss&prefix=prefix&timeout=1200;
复制代码
cache redis配置 unix版
这个文件application/config/redis.php内容
- $config['socket_type'] ='unix' ;
- $config['socket']='/var/redis.sock';
复制代码
cache redis配置 tcp版- $config['redis']=true;
- $config['socket_type'] ='tcp';
- $config['host']='127.0.0.1';
- $config['port']=6379;
- $config['timeout']=1200;
- $config['password']='pwd';
复制代码 |
|