大佬教程收集整理的这篇文章主要介绍了ruby-on-rails – Rails Dalli memcache gem:DalliError:没有可用的服务器,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
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@H_874_9@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@H_874_9@
然后我安装了memcachedsudo apt-get install memcached.现在工作正常
以上是大佬教程为你收集整理的ruby-on-rails – Rails Dalli memcache gem:DalliError:没有可用的服务器全部内容,希望文章能够帮你解决ruby-on-rails – Rails Dalli memcache gem:DalliError:没有可用的服务器所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。