VPS侦探论坛
标题:
lnmp 1.4 memcache 與 redis 設定問題 ~ 求助
[打印本页]
作者:
mattlin
时间:
2018-2-6 11:59
标题:
lnmp 1.4 memcache 與 redis 設定問題 ~ 求助
lnmp 1.4 + Discuz 3.2 請教 config_glogal.php 內 memcache 和 redis 設定, 各該如何設?
// -------------------------- CONFIG MEMORY --------------------------- //
$_config['memory']['prefix'] = 'SkuV20_';
$_config['memory']['memcache']['server'] = '';
$_config['memory']['memcache']['port'] = 11211;
$_config['memory']['memcache']['pconnect'] = 1;
$_config['memory']['memcache']['timeout'] = 1;
$_config['memory']['redis']['server'] = '';
$_config['memory']['redis']['port'] = 6379;
$_config['memory']['redis']['pconnect'] = 1;
$_config['memory']['redis']['timeout'] = '0';
$_config['memory']['redis']['requirepass'] = '';
$_config['memory']['redis']['serializer'] = 1;
承蒙前輩先進指教, 感激不盡!
[
本帖最后由 mattlin 于 2018-2-6 12:01 编辑
]
作者:
licess
时间:
2018-2-6 18:25
用哪个设置哪个的参数就可以了,端口都是默认的就行,server填127.0.0.1
作者:
mattlin
时间:
2018-2-8 10:39
标题:
回复 2# 的帖子
明白了 ! 謝謝軍哥熱心指導 ~~
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4