文章目录[隐藏]
一:服务端
首先,memcached要能正常使用,需要用到memcached服务端及memcached客户端/扩展
先在宝塔面板上,从“软件商店”的已安装找到php应用,比如我的是php-7.4

在最右边的“设置”打开设置PHP设置

“安装扩展”找到memcached--"安装"

完成安装后,如下图

二:安装memcached客户端/扩展
由于我博客使用了水煮鱼插件wpjam,已经有集成了memcached扩展,直接复制object-cache.php到博客的wp-content目录就可以了
可以在wpjam系统信息里看到扩展已启用了

暂无评论