首页 / 帖子
Memcached 怎麼在不同網站顯示監控的圖表?

我想請問:我開啟了memecached 的服務,我有兩個Drupal 網站想要都有memcache_status

但是只有的一個網站有圖表,第二個網站就會顯示:There is a problem with your memcache configuration, check the Drupal logs for additional errors. Please review README.txt for help resolving the following issue:

Failed to connect to memcached server instance at 127.0.0.1:11211.


這是我的settings.php 配置

#Memcached
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_servers'] = array(
  '127.0.0.1:11211' => 'default',
  );
$conf['memcache_bins'] = array(
  'cache' => 'default',
  'cache_filter' => 'default',
  'cache_menu' => 'default'
);

謝謝


1个答案
AnnyO
发布于:2014-12-19 13:05

如果是公用一个memcache的话,需要设置prefix来区分不同的站点