打印

lnmp 1.4 memcache 與 redis 設定問題 ~ 求助

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 编辑 ]

TOP

用哪个设置哪个的参数就可以了,端口都是默认的就行,server填127.0.0.1

TOP

回复 2# 的帖子

明白了 !  謝謝軍哥熱心指導 ~~

TOP