加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

ruby-on-rails – Rails Dalli memcache gem:DalliError:没有

发布时间:2020-12-16 05:53:01 所属栏目:安全 来源:网络整理
导读:嗨,我无法在我的服务器上设置我的Rails项目,因为apache不断抱怨 DalliError:没有服务器可用. 我在我的ubuntu机器上安装了memcached,但它仍然不起作用.我的rails项目也有config.cache_store =:dalli_store,’localhost:11211′,{:namespace = “productio
嗨,我无法在我的服务器上设置我的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.现在工作正常

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读