ruby-on-rails – Rails Dalli memcache gem:DalliError:没有可用的服务器

嗨,我无法在我的服务器上设置我的Rails项目,因为apache不断抱怨

DalliError:没有服务器可用.

我在我的ubuntu机器上安装了memcached,但它仍然不起作用.我的rails项目也有config.cache_store =:dalli_store,’localhost:11211′,{:namespace => “production”}在environments / production.rb中.我该如何调试?

我的日志显示在每个请求之前:

localhost:11211 failed (count: 6)
DalliError: No server available

telnet到11211:

root@s2:/usr/local/www/production/current/log# telnet localhost 11211
    Trying 127.0.1.1...
    telnet: Unable to connect to remote host: Connection refused

解决方法

我有同样的问题.
首先我安装了memcached作为一个宝石
gem安装memcached
并得到错误“DalliError:没有服务器可用”

然后我安装了memcachedsudo apt-get install memcached.现在工作正常

相关文章

前言设计一个缓存系统,不得不要考虑的问题就是:缓存穿透、...
在192.168.80.100要联网关闭防火墙及SElinuxsystemctlstopfi...
Redis与Memcache对比:1.Memcache是一个分布式的内存对象缓存...
安装Mencache:关闭防火墙及SElinuxsystemctl  stop  fi...
#安装php的yaf模块,参考https://www.cnblogs.com/shifu204/...
win10下安装配置apache、php、mysql、redis、memcache资源官...