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

我对Memcache vs Memcached和php5-memcache感到困惑

发布时间:2020-12-16 05:53:37 所属栏目:安全 来源:网络整理
导读:我按照tutorial中的说明如何安装nginx,php和mysql,包括php5-memcache. 我想知道我是否还需要安装没有“php5”前缀的memcache或memcached. 截至目前,我的WordPress网站正在抱怨ff: The following memcached servers are not responding or not running:Page

我按照tutorial中的说明如何安装nginx,php和mysql,包括php5-memcache.

我想知道我是否还需要安装没有“php5”前缀的memcache或memcached.

截至目前,我的WordPress网站正在抱怨ff:

The following memcached servers are not responding or not running:

Page Cache: 127.0.0.1:11211.
Database Cache: 127.0.0.1:11211.
Object Cache: 127.0.0.1:11211.
This message will automatically disappear once the issue is resolved.

如果需要安装,它会不会与php5-memcache冲突?或者类似于两个版本的过度使用?

什么是最好的版本? Memcache还是Memcached? php5-memcache或php5-memcached.

我听说memcached与“d”只是一个服务或守护进程.但有人试图将这两者比作我所看到的here.

最佳答案
这些扩展名称令人困惑.

实际上,php5-memcache和php5-memcached都是PHP扩展,用于处理memcached服务(Memcached server).它们既可以提供PHP进程,也可以作为客户端访问memcached服务,即通过网络连接到memcached,并使用memcached协议,以便使用memcached API.

php5-memcached扩展更稳定,在我看来有更多的功能,所以我建议,它应该首先尝试.其大部分业务也是faster(php source for the benchmark that produced these results).

您仍然需要在某处启动实际的memcached服务及其地址,以便连接到它.如果您需要分布式缓存,则可以在同一主机或其他主机/主机上启动memcached服务.

(编辑:李大同)

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

    推荐文章
      热点阅读